analyse/operators/non-numeric-unary-plus
In the analyse-strict preset and every stricter one. Report only. Upstream gates: strictRules.numericOperandsInArithmeticOperators + bleedingEdge.
Configuration
[analyse.rules]
"operators/non-numeric-unary-plus" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
OperandInArithmeticUnaryPlusRule(phpstan-classes)unaryPlus.nonNumeric(phpstan-strict-rules)