Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Cast float to int when last page in Pager is assigned. #175

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Pager/BasePager.php
Expand Up @@ -611,7 +611,7 @@ protected function setNbResults($nb)
*/
protected function setLastPage($page)
{
$this->lastPage = $page;
$this->lastPage = (int) $page;

if ($this->getPage() > $page) {
$this->setPage($page);
Expand Down