Skip to content

Commit 48cdf8d

Browse files
authored
Merge pull request #14 from patrickcarlohickman/update-fluent-return-types
Update the return typehints for the fluent methods on the Paginator.
2 parents 45d447e + 5634606 commit 48cdf8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Paginator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function isAsyncPaginationEnabled(): bool
291291
/**
292292
* Set the maximum number of pages the paginator will iterate over
293293
*/
294-
public function setMaxPages(?int $maxPages): Paginator
294+
public function setMaxPages(?int $maxPages): static
295295
{
296296
$this->maxPages = $maxPages;
297297

@@ -301,7 +301,7 @@ public function setMaxPages(?int $maxPages): Paginator
301301
/**
302302
* Set the per-page limit on the response
303303
*/
304-
public function setPerPageLimit(?int $perPageLimit): Paginator
304+
public function setPerPageLimit(?int $perPageLimit): static
305305
{
306306
$this->perPageLimit = $perPageLimit;
307307

0 commit comments

Comments
 (0)