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
Given an enum of string Test::CONST_* when a variable typed like this is passed through a generic template, it lost its specific typing and is instead coerced to a generic string type.
Might be a duplicate of #9084 but not sure about it
Bug report
Given an enum of string
Test::CONST_*
when a variable typed like this is passed through a generic template, it lost its specific typing and is instead coerced to a genericstring
type.Might be a duplicate of #9084 but not sure about it
Code snippet that reproduces the problem
https://phpstan.org/r/6322446c-cfa0-43d5-a526-aad71db61f43
Expected output
Expecting
$bar
to be aarray<1|2>
Did PHPStan help you today? Did it make you happy in any way?
Everyday :)
The text was updated successfully, but these errors were encountered: