Skip to content

Commit

Permalink
Fix warning array_slice null param #2
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Oct 9, 2024
1 parent 61b5ec2 commit feeb2e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function ($first, $second) use ($i, $indexKey) {
private function sliceResults(QueryFilter $filter, array $result)
{
if ($filter->getLimit()) {
$result = array_slice($result, $filter->getOffset(), $filter->getLimit());
$result = array_slice($result, $filter->getOffset()??0, $filter->getLimit());
}

return $result;
Expand Down

0 comments on commit feeb2e4

Please sign in to comment.