Skip to content

Commit cfd9e63

Browse files
authored
fix function return type
1 parent bdcaeaf commit cfd9e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Data/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public function getLastPageNumber()
259259
if (0 === $collectionSize) {
260260
return 1;
261261
} elseif ($this->_pageSize) {
262-
return ceil($collectionSize / $this->_pageSize);
262+
return (int)ceil($collectionSize / $this->_pageSize);
263263
} else {
264264
return 1;
265265
}

0 commit comments

Comments
 (0)