You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you think we can disable the new optimization for huge const arrays?
Don't know if it can be considered a bug but my const is now oversimplified and the array shape is not guessed as precisely as it used to be with PHPStan <1.9.5.
Bug report
Do you think we can disable the new optimization for huge const arrays?
Don't know if it can be considered a bug but my const is now oversimplified and the array shape is not guessed as precisely as it used to be with PHPStan <1.9.5.
Code snippet that reproduces the problem
https://phpstan.org/r/ba75c9cd-8683-421d-8996-742e72c108ea
Expected output
No error!
Did PHPStan help you today? Did it make you happy in any way?
For sure, it's an amazing and helpful tool. 👏
The text was updated successfully, but these errors were encountered: