Menu

← Back to all error identifiers

Error Identifiers: if.*

There are 3 error identifiers in the if.* group:

  • Condition in an if statement is always false, making the body dead code.
  • Condition in an if statement is always true, making the check redundant.
  • if.condNotBoolean phpstan-strict-rules
    Non-boolean type is used in an if condition instead of an explicit comparison.
Theme
A
© 2026 PHPStan s.r.o.