Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #48 from jwohlfert23/patch-1
Browse files Browse the repository at this point in the history
Cast $perPage to int value
  • Loading branch information
shokme authored Sep 22, 2020
2 parents beebb5f + 684047e commit c4b44cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engines/MeilisearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function paginate(Builder $builder, $perPage, $page)
{
return $this->performSearch($builder, array_filter([
'filters' => $this->filters($builder),
'limit' => $perPage,
'limit' => (int) $perPage,
'offset' => ($page - 1) * $perPage,
]));
}
Expand Down

0 comments on commit c4b44cd

Please sign in to comment.