Menu

← Back to all error identifiers

Error Identifiers: foreach.*

There are 4 error identifiers in the foreach.* group:

  • Foreach iterates over an empty array, so the loop body never executes.
  • foreach.keyOverwrite phpstan-strict-rules
    Foreach key variable overwrites an existing variable in the current scope.
  • Expression passed to foreach is not an iterable type.
  • foreach.valueOverwrite phpstan-strict-rules
    Foreach value variable overwrites an existing variable in the current scope.
Theme
A
© 2026 PHPStan s.r.o.