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
has already been asserted errors should probably be disabled on in-array- assertions.
It's useful to know for example that $a is in an array that contains only strings (because we can infer $a is a string). However, checking that it's in another array containing other strings is not redundant
Checking
in_array()
twice on two different arrays produces a wrongRedundantCondition
error:https://psalm.dev/r/6d5c4d5b60
Notes:
!in_array()
works finein_array()
withoutstrict: true
works fineThe text was updated successfully, but these errors were encountered: