Skip to content

Commit d14dd70

Browse files
committed
Readme adjustment
1 parent 3e02d4c commit d14dd70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,11 @@ class EnforceReadonlyPublicPropertyRule {
227227
```
228228

229229
### forbidArithmeticOperationOnNonNumber
230-
- Disallows using [arithmetic operators](https://www.php.net/manual/en/language.operators.arithmetic.php) with non-numeric types (only float and 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)
231231
- You can allow numeric-string by using `allowNumericString: true` configuration
232232
- Modulo operator (`%`) allows only integers as it [emits deprecation otherwise](https://3v4l.org/VpVoq)
233233
- Plus operator is allowed for merging arrays
234+
- `float` and `BcMath\Number` cannot be combined as it emits deprecations
234235

235236
```php
236237
function add(string $a, string $b) {

0 commit comments

Comments
 (0)