New issue
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
A large array in source code locks up phpstan since version 0.12.95 #5500
Comments
This bug report is missing a link to reproduction on phpstan.org. It will most likely be closed after manual review. |
I was able to bring it down to a minute with this optimization: phpstan/phpstan-src@5a44c29 |
Is that sort really so slow? Seems odd. |
I tried f7ede5f build, and it is still slow. There is definitely a regression that happened since 0.12.94. |
The "regression" is that huge union stays a union and is interpreted precisely. With dev-master at least it finishes in a reasonable amount of time. One way to solve this is not to analyse files like that - there's little value in that. |
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. |
Bug report
Happens in 0.12.95 and 0.12.96. It worked fine in 0.12.94.
phpstan seemingly just gets stuck on that file and does not quit.
Code snippet that reproduces the problem
Expected output
phpstan doesn't lock up
The text was updated successfully, but these errors were encountered: