Skip to content

Commit

Permalink
Criteria supports default empty now
Browse files Browse the repository at this point in the history
  • Loading branch information
Firehed committed Feb 11, 2024
1 parent 86db8dd commit 5fb780a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InMemoryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $
*
* @param array<string, mixed> $criteria
*/
public function count(array $criteria): int
public function count(array $criteria = []): int
{
return count($this->findBy($criteria));
}
Expand Down

0 comments on commit 5fb780a

Please sign in to comment.