Skip to content

Commit

Permalink
[8.x] Cast linkCollection to array (#34245)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo authored Sep 10, 2020
1 parent 7b4d0f7 commit 257b95c
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 @@ -198,7 +198,7 @@ public function toArray()
'from' => $this->firstItem(),
'last_page' => $this->lastPage(),
'last_page_url' => $this->url($this->lastPage()),
'links' => $this->linkCollection(),
'links' => $this->linkCollection()->toArray(),
'next_page_url' => $this->nextPageUrl(),
'path' => $this->path(),
'per_page' => $this->perPage(),
Expand Down

0 comments on commit 257b95c

Please sign in to comment.