Menu

← Back to all error identifiers

Error Identifiers: empty.*

There are 6 error identifiers in the empty.* group:

  • Result of empty() on this expression is always predictable.
  • Using empty() on a non-nullable initialized property is redundant.
  • empty.notAllowed phpstan-strict-rules
    Usage of empty() is disallowed by strict rules.
  • Array offset used in empty() does not exist on the given type.
  • Using empty() on a property with a known type is redundant.
  • Variable used in empty() is never defined in the current scope.
Theme
A
© 2026 PHPStan s.r.o.