Merge pull request #9603 from cakephp/issue-9592

Fix warning in PHP 7.1
This commit is contained in:
Mark Story 2016-10-11 17:23:00 -04:00 committed by GitHub
commit a3577978b0

View file

@ -946,7 +946,7 @@ class PaginatorHelper extends AppHelper {
unset($options['tag'], $options['before'], $options['model'], $options['separator'], $options['ellipsis'], $options['class']);
$out = '';
$lower = $params['pageCount'] - $last + 1;
$lower = $params['pageCount'] - (int)$last + 1;
if ((is_int($last) || ctype_digit($last)) && $params['page'] <= $lower) {
if ($before === null) {