Menu
← Back to all error identifiers
Error Identifiers: generics.*
There are 36 error identifiers in the generics.* group:
-
Call-site variance annotation conflicts with the declaration-site variance.
-
Call-site variance annotation is not allowed in @extends, @implements, or @use tags.
-
Call-site variance annotation is redundant because the template already has the same variance.
-
generics.deprecatedClassBound phpstan-deprecation-rulesTemplate type bound references a deprecated class.
-
generics.deprecatedClassDefault phpstan-deprecation-rulesTemplate type default references a deprecated class.
-
generics.deprecatedEnumBound phpstan-deprecation-rulesTemplate type bound references a deprecated enum.
-
generics.deprecatedEnumDefault phpstan-deprecation-rulesTemplate type default references a deprecated enum.
-
generics.deprecatedInterfaceBound phpstan-deprecation-rulesTemplate type bound references a deprecated interface.
-
generics.deprecatedInterfaceDefault phpstan-deprecation-rulesTemplate type default references a deprecated interface.
-
generics.deprecatedTraitBound phpstan-deprecation-rulesTemplate type bound references a deprecated trait.
-
generics.deprecatedTraitDefault phpstan-deprecation-rulesTemplate type default references a deprecated trait.
-
Template type parameter name conflicts with an existing class name.
-
Template type parameter name conflicts with an existing type alias.
-
Same generic interface is inherited with conflicting type arguments.
-
Template type bound references an internal class.
-
Template type default references an internal class.
-
Template type bound references an internal enum.
-
Template type default references an internal enum.
-
Template type bound references an internal interface.
-
Template type default references an internal interface.
-
Template type bound references an internal trait.
-
Template type default references an internal trait.
-
Generic type is missing some of its required type arguments.
-
Generic type specifies more type arguments than the class declares.
-
Class has an @extends or @implements tag but does not extend or implement the type.
-
PHPDoc @implements or @extends tag specifies an invalid generic type.
-
Type arguments are specified for a class or interface that is not generic.
-
Type argument does not satisfy the template type bound constraint.
-
Template type bound uses a type that is not supported as a generic constraint.
-
Required template type parameter appears after an optional one.
-
Default type for a template parameter is not within its bound.
-
Trait is used as a generic type argument, which is not a valid type.
-
Trait is used as a template type bound, which is not allowed.
-
Generic type argument cannot be resolved.
-
Template type is used in a position that violates its variance.
-
Generic type tag references a class or interface not actually extended or implemented.