analyse/undefined/trait
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"undefined/trait" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ExistingClassInTraitUseRule(phpstan-classes)NonExistentClassLike(mago-analyzer)interface.traitUse(phpstan)trait.notFound(phpstan)traitUse.class(phpstan)traitUse.enum(phpstan)traitUse.interface(phpstan)