Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix Issue #52 #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BlackMaizeGod
Copy link

  • Changed return value from null to empty string in UriParser::setQueryUri method, if query params were not pass. It needs, so that Paginator::setQueryUri str_replace get empty string instead of null and does not crash.
  • Added additional step for identification current page before processing pagination query in the QueryBuilder::basePaginate method. It needs, because the QueryBuilder::basePaginate is private and is called only once and only in this class. The method calls without $page parameter passing, so that the $page will always be 1 and the Paginator::items will have incorrect items.

Black Maize God added 2 commits June 29, 2023 11:28
- Changed return value from null to empty string in `UriParser::setQueryUri` method, if query params were not pass. It needs, so that `Paginator::setQueryUri` str_replace get empty string instead of `null` and does not crash.
- Added additional step for identification current page before processing pagination query in the `QueryBuilder::basePaginate` method. It needs, because the `QueryBuilder::basePaginate`  is private and is called only once and only in this class. The method calls without `$page` parameter passing, so that the `$page` will always be `1` and the `Paginator::items` will have incorrect items.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant