-
-
Notifications
You must be signed in to change notification settings - Fork 937
Open
phpstan/phpstan-src
#4856Labels
Milestone
Description
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. 👏
Reactions are currently unavailable