From 7b0de0d3fb62eb555b9aedf2152cd7f4d75a6924 Mon Sep 17 00:00:00 2001 From: James Goodman Date: Thu, 10 Oct 2024 15:53:09 +1300 Subject: [PATCH] fix: Remove infinite recursion in PaginatedList->setPageLength --- src/PaginatedList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PaginatedList.php b/src/PaginatedList.php index ceb9c8d..9e8cb52 100644 --- a/src/PaginatedList.php +++ b/src/PaginatedList.php @@ -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;