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
Psalm output (using commit 5847d08):
INFO: MixedMethodCall - 7:14 - Cannot call method on an unknown class
INFO: MixedAssignment - 7:5 - Unable to determine the type that $cases is being assigned to
ERROR: ForbiddenCode - 8:5 - Unsafe var_dump
ERROR: ForbiddenCode - 16:5 - Unsafe var_dump
All enums implicitly inherit from
UnitEnum
, so calling the$enumString::cases()
static method is always legal, but Psalm does not seem to behave that way: https://psalm.dev/r/ea20c1515dI noticed this problem while checking the behavioral differences between PHPStan and Psalm to write a tutorial on typing in PHP.
refs #7404, phpstan/phpstan#12529, phpstan/phpstan-src#3807
The text was updated successfully, but these errors were encountered: