We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Open a pull request with this change, thanks!
Sorry, something went wrong.
EntityRepository::count returns positive int - fixes phpstan#603
7d486f0
a9bb990
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.
Successfully merging a pull request may close this issue.
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.The text was updated successfully, but these errors were encountered: