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
count
unset() does this already, but offsetUnset does not.
unset()
offsetUnset
https://phpstan.org/r/07c01a9b-f5e8-4f48-8591-105d9d715607
I'd expect this snippet to not have any errors
The text was updated successfully, but these errors were encountered:
@BackEndTea After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ -13: Strict comparison using === between int<1, max> and 0 will always evaluate to false. +No errors
Sorry, something went wrong.
Fixed by: phpstan/phpstan-src@98fb540
Regression test
9cc7734
Closes phpstan/phpstan#4287
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.
No branches or pull requests
Bug report
unset()
does this already, butoffsetUnset
does not.Code snippet that reproduces the problem
https://phpstan.org/r/07c01a9b-f5e8-4f48-8591-105d9d715607
Expected output
I'd expect this snippet to not have any errors
The text was updated successfully, but these errors were encountered: