Open fluffycondor opened 2 years ago
Psalm 4.24.0@06dd975cb55d36af80f242561738f16c5f58264f and strictBinaryOperands="true" (thus can't be reproduced on psalm.dev)
strictBinaryOperands="true"
https://psalm.dev/r/2b1b3686d6
On the 4th line RedundantIdentityWithTrue is triggered. But it's the way to use match recommended by PHP docs: https://www.php.net/manual/en/control-structures.match.php#example-137
RedundantIdentityWithTrue
match
I found these snippets:
Psalm 4.24.0@06dd975cb55d36af80f242561738f16c5f58264f and
strictBinaryOperands="true"
(thus can't be reproduced on psalm.dev)https://psalm.dev/r/2b1b3686d6
On the 4th line
RedundantIdentityWithTrue
is triggered. But it's the way to usematch
recommended by PHP docs: https://www.php.net/manual/en/control-structures.match.php#example-137