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
<?php$a = random_int(0, 10) >= 5 ? true : false;
$b = (int) $a;
// This part isn't important, just using $b so there aren't more issues.if ($b > 0) {
}
Psalm output (using commit d1398f2):
INFO: UnusedVariable - 3:1 - $a is never referenced or the value is not used
https://psalm.dev/r/29407446ea
The
(int)
cast appears to cause the false positive.The text was updated successfully, but these errors were encountered: