analyse/types/invalid-unary-operand
In the analyse-essential preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/invalid-unary-operand" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
InvalidUnaryOperationRule(phpstan-classes)unaryOp.invalid(phpstan)