analyse/undefined/instanceof-class
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"undefined/instanceof-class" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ExistingClassInInstanceOfRule(phpstan-classes)ParentOutsideClassScope(mago-analyzer)SelfOutsideClassScope(mago-analyzer)StaticOutsideClassScope(mago-analyzer)instanceof.trait(phpstan)outOfClass.parent(phpstan)outOfClass.self(phpstan)outOfClass.static(phpstan)