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
<?php
enum E {
constA = 1;
case B;
}
/** @return E::* */functionf(): mixed {
returnE::B;
}
Psalm output (using commit f496cca):
ERROR: InvalidReturnStatement - 10:12 - The inferred type 'enum(E::B)' does not match the declared return type '1' for f
ERROR: InvalidReturnType - 8:13 - The declared return type '1' for f is incorrect, got 'enum(E::B)'
Psalm should
The text was updated successfully, but these errors were encountered: