Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Jul 28, 2024
1 parent 6c155d4 commit 282e561
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function countOffsetItems(int $offset = 0, ?int $limit = null): int
$criteria->setMaxResults($limit);
}

return \count($this->collection->matching($criteria));
return count($this->collection->matching($criteria)->toArray());
}

//
Expand Down Expand Up @@ -265,7 +265,7 @@ public function countKeysetItems(
//
// return $this->collection->matching($criteria)->count();

return \count($this->collection->matching($criteria));
return count($this->collection->matching($criteria)->toArray());
}

/**
Expand Down

0 comments on commit 282e561

Please sign in to comment.