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
When using a union of class constants as argument and not marking phpdoc types as certain, phpstan complains about the last matched case not being handled.
No error should be reported. Or if an error is reported due to not being certain, it should talk about other strings, not about the last case (that is handled)
Did PHPStan help you today? Did it make you happy in any way?
Helping a lot.
The text was updated successfully, but these errors were encountered:
Bug report
When using a union of class constants as argument and not marking phpdoc types as certain, phpstan complains about the last matched case not being handled.
Code snippet that reproduces the problem
https://phpstan.org/r/7c5c6bcc-0753-475b-a612-46d8f012ae6f
Expected output
No error should be reported. Or if an error is reported due to not being certain, it should talk about other strings, not about the last case (that is handled)
Did PHPStan help you today? Did it make you happy in any way?
Helping a lot.
The text was updated successfully, but these errors were encountered: