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
If statements with a lot of conditions causes phpstan to hang.
I tried to post this on phpstan.org, but it causes the server to return a 500 error when using 0.10.2
<?php $number = 0; if ($number === 1000 || $number === 2000 || $number === 3000 || $number === 4000 || $number === 5000 || $number === 6000 || $number === 7000 || $number === 8000 || $number === 9000 || $number === 10000 || $number === 11000 || $number === 12000 || $number === 13000 || $number === 14000 || $number === 15000 || $number === 16000 ) { }
This same snippet works perfectly fine when using 0.10.1. https://phpstan.org/r/32a5a130291074b770f4d67254a0d66c
PHPStan should not hang.
The text was updated successfully, but these errors were encountered:
Fixed: f45589b
Sorry, something went wrong.
@ondrejmirtes Thank you. Could you add a test with the above code that should finish under less than a second?
@szepeviktor These kinds of tests are tricky and brittle, I prefer not to have them. I do some performance testing before stable release.
No branches or pull requests
Summary of a problem or a feature request
If statements with a lot of conditions causes phpstan to hang.
Code snippet that reproduces the problem
I tried to post this on phpstan.org, but it causes the server to return a 500 error when using 0.10.2
This same snippet works perfectly fine when using 0.10.1.
https://phpstan.org/r/32a5a130291074b770f4d67254a0d66c
Expected output
PHPStan should not hang.
The text was updated successfully, but these errors were encountered: