Skip to content

Commit

Permalink
The label for page number in pagination should always be as string (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
smujaddid authored Feb 17, 2021
1 parent 34d58b5 commit 3c89871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Pagination/LengthAwarePaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected function linkCollection()
return collect($item)->map(function ($url, $page) {
return [
'url' => $url,
'label' => $page,
'label' => (string) $page,
'active' => $this->currentPage() === $page,
];
});
Expand Down

0 comments on commit 3c89871

Please sign in to comment.