analyse/operators/non-numeric-exponentiation
In the analyse-strict preset and every stricter one. Report only. Upstream gates: strictRules.numericOperandsInArithmeticOperators.
Configuration
[analyse.rules]
"operators/non-numeric-exponentiation" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
OperandsInArithmeticExponentiationRule(phpstan-classes)pow.leftNonNumeric(phpstan-strict-rules)pow.rightNonNumeric(phpstan-strict-rules)