analyse/types/invalid-unset
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/invalid-unset" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
UnsetRule(phpstan-classes)InvalidUnset(mago-analyzer)unset.hookedProperty(phpstan)unset.offset(phpstan)unset.possiblyHookedProperty(phpstan)unset.readOnlyProperty(phpstan)unset.readOnlyPropertyByPhpDoc(phpstan)unset.variable(phpstan)