Error Identifiers: while.*

Menu

← Back to all error identifiers

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

  • While loop condition is always false, so the loop body never executes.

  • While loop condition is always true with no exit point, creating an infinite loop.

  • while.condNotBoolean phpstan-strict-rules

    While loop condition is not a boolean, relying on implicit type coercion.

Theme

A

Twitter Mastodon YouTube RSS

© 2026 PHPStan s.r.o.