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 7ea06c7):
ERROR: NullableReturnStatement - 5:9 - The declared return type 'array<array-key, mixed>' for example is not nullable, but the function returns 'array<array-key, mixed>|null'
ERROR: InvalidNullableReturnType - 3:21 - The declared return type 'array<array-key, mixed>' for example is not nullable, but 'array<array-key, mixed>|null' contains null
Both
array_replace()
andarray_replace_recursive()
are documented to return NULL "if an error occurs", but Psalm treats them differently:https://psalm.dev/r/35615780e3
I'd expect no errors since this should be covered by
ignoreInternalFunctionNullReturn
.The text was updated successfully, but these errors were encountered: