Closed kevinpapst closed 2 months ago
Adding this method to the EntityRepository.stub solves a few issues where positive integer are expected.
EntityRepository.stub
Afaik this method can never return a negative interger.
/** * @param array<string, mixed> $criteria * * @return int<0, max> */ public function count(array $criteria);
Never opened a PR here, so please advice how to proceed. Also I am puzzled whether return or phpstan-return or psalm-return is the correct way.
return
phpstan-return
psalm-return
Open a pull request with this change, thanks!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Adding this method to the
EntityRepository.stub
solves a few issues where positive integer are expected.Afaik this method can never return a negative interger.
Never opened a PR here, so please advice how to proceed. Also I am puzzled whether
return
orphpstan-return
orpsalm-return
is the correct way.