mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
262 B
262 B
RedundantIdentityWithTrue
Emitted when comparing a known boolean with true and the strictBinaryOperands
flag is set to true.
<?php
function returnsABool(): bool {
return rand(1, 2) === 1;
}
if (returnsABool() === true) {
echo "hi!";
}