Skip to content

Commit

Permalink
Merge pull request #46 from tyrannosaurusjames/fix-set-page-length
Browse files Browse the repository at this point in the history
fix: Remove infinite recursion in PaginatedList->setPageLength
  • Loading branch information
wilr authored Oct 10, 2024
2 parents 83618ee + 7b0de0d commit 7c8cf00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PaginatedList.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function setPageStart($start)

public function setPageLength($length)
{
$this->setPageLength($length);
parent::setPageLength($length);
$this->list = $this->resultList->limit($length, $this->getPageStart())->toArrayList();

return $this;
Expand Down

0 comments on commit 7c8cf00

Please sign in to comment.