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 198fdf8):
ERROR: InvalidReturnStatement - 9:12 - The inferred type 'numeric' does not match the declared return type 'float|int' for scope
ERROR: InvalidReturnType - 6:27 - The declared return type 'float|int' for scope is incorrect, got 'numeric'
This can't be reproduced on psalm.dev but here's the snippet anyway:
https://psalm.dev/r/100b60f446
numeric
can contain int, float or numeric-string, so when strictBinaryOperands is enabled, doing operations with it should trigger InvalidOperandThe text was updated successfully, but these errors were encountered: