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