From d30dd3c05ad364cbe792cad80740bd805424cc7e Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 13 May 2014 14:00:51 +0200 Subject: [PATCH] Fixed JobPager - returns integers, not floats --- src/Api/Common/JobPager.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Api/Common/JobPager.php b/src/Api/Common/JobPager.php index fbc767fd..13fd0c65 100644 --- a/src/Api/Common/JobPager.php +++ b/src/Api/Common/JobPager.php @@ -36,15 +36,15 @@ class JobPager $pageSize = $this->getPageSize(); $pageNumber = $this->getPageNumber(); - $pageCount = ceil($totalEntityCount / $pageSize); + $pageCount = (int) ceil($totalEntityCount / $pageSize); $pageNumber = $this->getPageNumber(); $pageNumber = min($pageCount, $pageNumber); $ret = new StdClass; $ret->entities = $entities; - $ret->entityCount = $totalEntityCount; - $ret->page = $pageNumber; - $ret->pageCount = $pageCount; + $ret->entityCount = (int) $totalEntityCount; + $ret->page = (int) $pageNumber; + $ret->pageCount = (int) $pageCount; return $ret; } }