Skip to content

Commit

Permalink
Typecast page number as integer (#36055)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Jan 26, 2021
1 parent b42c2d8 commit 9d7f75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Pagination/AbstractPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public static function currentPathResolver(Closure $resolver)
public static function resolveCurrentPage($pageName = 'page', $default = 1)
{
if (isset(static::$currentPageResolver)) {
return call_user_func(static::$currentPageResolver, $pageName);
return (int) call_user_func(static::$currentPageResolver, $pageName);
}

return $default;
Expand Down

0 comments on commit 9d7f75e

Please sign in to comment.