Skip to content

Commit

Permalink
EntityRepository::count returns positive int - fixes #603
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst authored and ondrejmirtes committed Aug 20, 2024
1 parent 6632f38 commit a9bb990
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stubs/EntityRepository.stub
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,11 @@ class EntityRepository implements ObjectRepository
*/
public function createQueryBuilder($alias, $indexBy = null);

/**
* @param array<string, mixed> $criteria
*
* @return int<0, max>
*/
public function count(array $criteria);

}

0 comments on commit a9bb990

Please sign in to comment.