Skip to content

Commit 7d486f0

Browse files
committed
EntityRepository::count returns positive int - fixes phpstan#603
1 parent 6632f38 commit 7d486f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stubs/EntityRepository.stub

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,11 @@ class EntityRepository implements ObjectRepository
7171
*/
7272
public function createQueryBuilder($alias, $indexBy = null);
7373

74+
/**
75+
* @param array<string, mixed> $criteria
76+
*
77+
* @return int<0, max>
78+
*/
79+
public function count(array $criteria);
80+
7481
}

0 commit comments

Comments
 (0)