analyse/statements/invalid-empty
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"statements/invalid-empty" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
EmptyRule(phpstan-classes)checkAdvancedIsset(phpstan-parameters)RedundantIssetCheck(mago-analyzer)empty.initializedProperty(phpstan)empty.offset(phpstan)empty.property(phpstan)empty.variable(phpstan)isset.initializedProperty(phpstan)isset.offset(phpstan)isset.property(phpstan)isset.variable(phpstan)nullCoalesce.initializedProperty(phpstan)nullCoalesce.offset(phpstan)nullCoalesce.property(phpstan)nullCoalesce.variable(phpstan)