-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Description
Bug report
In #7031, I reported two issues when trying to infer the key of an iterable, but forgot to create a separate issue as was asked. Here it is.
Code snippet that reproduces the problem
https://phpstan.org/r/efdae2f5-0033-4a4f-8c6d-66c31136829f
https://phpstan.org/r/884d3d97-9b8d-4924-8559-5b8c7449ef31
Expected output
The type should be properly inferred both for the simple string and the complex (class constant) one.
Did PHPStan help you today? Did it make you happy in any way?
Just upgraded to the latest version and had yet one less issue reported in my project's baseline. <3 Thank you for all your hard work!
Reactions are currently unavailable