analyse/types/invalid-class-template
In the analyse-essential preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/invalid-class-template" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ClassTemplateTypeRule(phpstan-classes)generics.existingClass(phpstan)generics.existingTypeAlias(phpstan)generics.notSupportedBound(phpstan)generics.requiredTypeAfterOptional(phpstan)generics.templateDefaultOutOfBounds(phpstan)generics.traitBound(phpstan)