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