analyse/dead-code/discarded-static-method-result
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"dead-code/discarded-static-method-result" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
CallToStaticMethodStatementWithNoDiscardRule(phpstan-classes)staticMethod.inVoidCast(phpstan)staticMethod.resultDiscarded(phpstan)