This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixes offset calculation for paginated Doctrine collections
The code was erroneously using the calculated `$pageCount`, which represented the total number of pages in the collection, instead of the `$perPage` value when calculating the result offset. This was due to missing assertions in the unit tests. The assertions have been added, and the code corrected accordingly.
- Loading branch information
1 parent
fbd05cf
commit fe80d5d
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters