Skip to content

Commit

Permalink
Replace $paginationSettings with $pageSize
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jan 13, 2023
1 parent 83b0040 commit 733f563
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class Paginator
*/
protected string $paginationRouteBasename;

public function __construct(Arrayable|array $items = [], PaginationSettings|array $paginationSettings = [], int $currentPageNumber = null, string $paginationRouteBasename = null)
public function __construct(Arrayable|array $items = [], int $pageSize = 25, int $currentPageNumber = null, string $paginationRouteBasename = null)
{
$this->pageSize = $this->getPaginationSettings($paginationSettings)->pageSize;
$this->pageSize = $pageSize;

$this->generate(collect($items));

Expand Down

0 comments on commit 733f563

Please sign in to comment.