analyse/types/invalid-inc-dec
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/invalid-inc-dec" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
InvalidIncDecOperationRule(phpstan-classes)parameterByRef.type(phpstan)postDec.type(phpstan)postInc.type(phpstan)preDec.type(phpstan)preInc.type(phpstan)