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
{{ message }}
Repository navigation
if ($value > 0) proves that $value is not false #1272
Activity
JanTvrdik commentedon Jul 23, 2018
And to make to code readable for humans.
iluuu1994 commentedon Jul 23, 2018
Absolutely. That's why "PHPStan-strict-rules" has rules to avoid comparisons of non-number types.
But I still think PHPStan should avoid false positives.
ondrejmirtes commentedon Jan 8, 2021
Already implemented by phpstan/phpstan-src#390
github-actions commentedon May 2, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.