You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -227,10 +227,11 @@ class EnforceReadonlyPublicPropertyRule {
227
227
```
228
228
229
229
### forbidArithmeticOperationOnNonNumber
230
-
- Disallows using [arithmetic operators](https://www.php.net/manual/en/language.operators.arithmetic.php) with non-numeric types (only floatand int is allowed)
230
+
- Disallows using [arithmetic operators](https://www.php.net/manual/en/language.operators.arithmetic.php) with non-numeric types (only `float`, `int`and `BcMath\Number` is allowed)
231
231
- You can allow numeric-string by using `allowNumericString: true` configuration
232
232
- Modulo operator (`%`) allows only integers as it [emits deprecation otherwise](https://3v4l.org/VpVoq)
233
233
- Plus operator is allowed for merging arrays
234
+
-`float` and `BcMath\Number` cannot be combined as it emits deprecations
0 commit comments