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
<?phpnamespacen;
class Foo {
/** * @param -1|0|1 $i */publicstaticfunctiontakeValue($i): int {
return$i;
}
}
Psalm output (using commit 2c77424):
ERROR: InvalidDocblock - 7:15 - Unrecognized type n\-1 in docblock for n\Foo::takeValue
INFO: MixedReturnStatement - 10:16 - Could not infer a return type
INFO: MissingParamType - 9:38 - Parameter $i has no provided type
INFO: MixedInferredReturnType - 9:43 - Could not verify return type 'int' for n\Foo::takeValue
When using a literal negative number as param type, Psalm doesn't recognized it throwing an error.
https://psalm.dev/r/9aa91865eb
The text was updated successfully, but these errors were encountered: