Menu

← Back to all error identifiers

Error Identifiers: traitUse.*

There are 5 error identifiers in the traitUse.* group:

  • traitUse.class non-ignorable
    Class is used in a trait use statement, but only traits are allowed.
  • traitUse.deprecatedTrait phpstan-deprecation-rules
    Trait use statement references a deprecated trait.
  • traitUse.enum non-ignorable
    Enum is used in a trait use statement, but only traits are allowed.
  • traitUse.interface non-ignorable
    Interface is used in a trait use statement, but only traits are allowed.
  • Trait use statement references an internal trait from another package.
Theme
A
© 2026 PHPStan s.r.o.