Menu
← Back to all error identifiers
Error Identifiers: attribute.*
There are 22 error identifiers in the attribute.* group:
-
Abstract class cannot be used as an attribute.
-
Non-class type (interface, trait, or enum) used as an attribute class.
-
Attribute class has a non-public constructor.
-
Attribute references a deprecated class.
-
attribute.deprecatedClass phpstan-deprecation-rulesAttribute references a deprecated class (deprecation-rules).
-
attribute.deprecatedEnum phpstan-deprecation-rulesAttribute references a deprecated enum.
-
attribute.deprecatedInterface phpstan-deprecation-rulesAttribute references a deprecated interface.
-
attribute.deprecatedTrait phpstan-deprecation-rulesAttribute references a deprecated trait.
-
Enum cannot be used as an attribute class.
-
Interface cannot be used as an attribute class.
-
Attribute references an internal class.
-
Attribute references an internal enum.
-
Attribute references an internal interface.
-
Attribute references an internal trait.
-
Attribute class has no constructor but is used with arguments.
-
Non-repeatable attribute is applied more than once to the same target.
-
Class used as an attribute is not declared as an attribute class.
-
Attribute class does not exist.
-
Attribute is applied to a target it does not support.
-
Trait cannot be used as an attribute class because traits cannot be instantiated.
-
Template type in attribute constructor cannot be resolved from the arguments.
-
Return value of a void-returning call is used in an attribute context.