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
phpstan 1.0.1
PHPStan thinks (\XMLReader) $reader->read() becomes forever false after calling $reader->close(), but it's not true.
(\XMLReader) $reader->read()
false
$reader->close()
https://phpstan.org/r/a2f98248-04b5-448e-901e-f89a37dc4d1f
Thanks for the new shiny major PHPStan update! ❤️ I've fixed a bunch of errors in my project thanks to this update.
The text was updated successfully, but these errors were encountered:
@fluffycondor After the latest push in 1.8.x, PHPStan now reports different result with your code snippet:
@@ @@ -8: While loop condition is always false. +No errors
Sorry, something went wrong.
/cc @staabm regression test here please :) Thank you.
added regression test
118bc23
closes phpstan/phpstan#5920
5c71adb
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.
Bug report
phpstan 1.0.1
PHPStan thinks
(\XMLReader) $reader->read()
becomes foreverfalse
after calling$reader->close()
, but it's not true.Code snippet that reproduces the problem
https://phpstan.org/r/a2f98248-04b5-448e-901e-f89a37dc4d1f
Did PHPStan help you today? Did it make you happy in any way?
Thanks for the new shiny major PHPStan update! ❤️
I've fixed a bunch of errors in my project thanks to this update.
The text was updated successfully, but these errors were encountered: