Skip to content

Commit

Permalink
Fix warning in PHP 7.1
Browse files Browse the repository at this point in the history
Refs #9592
  • Loading branch information
markstory committed Oct 11, 2016
1 parent 5e0dc21 commit 8baf193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/PaginatorHelper.php
Expand Up @@ -946,7 +946,7 @@ public function last($last = 'last >>', $options = array()) {
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) {
Expand Down

0 comments on commit 8baf193

Please sign in to comment.