-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for properties in interfaces extending \UnitEnum
& \BackedEnum
#7719
Conversation
For some reason the failed test was run on php 8.0
It passes on PHP 8.1.3
|
On PHP 8.0 Psalm seems to be unaware that in_array('UnitEnum', $codebase->getParentInterfaces($fq_class_name/*="ExtendedBackedEnum"*/)) check.
|
Thanks for pointing it out. But I thought enum was available only since 8.1 |
They're only available in 8.1, but I believe we're trying to support analyzing a project requiring PHP 8.1 while running PHP < 8.1. This should be fixable in stubs, it looks like BackedEnum is supposed to extend UnitEnum. |
Thanks! |
Fixes #7551