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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
|`numericOperandsInArithmeticOperators`| Require numeric operand in `+$var`, `-$var`, `$var++`, `$var--`, `++$var` and `--$var`. |
14
14
|`numericOperandsInArithmeticOperators`| Require numeric operand in `$var++`, `$var--`, `++$var`and `--$var`. |
15
15
|`strictFunctionCalls`| These functions contain a `$strict` parameter for better type safety, it must be set to `true`:<br>*`in_array` (3rd parameter)<br>*`array_search` (3rd parameter)<br>*`array_keys` (3rd parameter; only if the 2nd parameter `$search_value` is provided)<br>*`base64_decode` (2nd parameter). |
16
-
|`overwriteVariablesWithLoop`| * Variables assigned in `while` loop condition and `for` loop initial assignment cannot be used after the loop. <br>* Variables set in `foreach`that's always looped thanks to non-empty arrays cannot be used after the loop.<br>* Disallow overwriting variables with `foreach` key and value variables. |
16
+
|`overwriteVariablesWithLoop`| * Disallow overwriting variables with `foreach`key and value variables.<br>* Disallow overwriting variables with `for` loop initial assignment. |
17
17
|`switchConditionsMatchingType`| Types in `switch` condition and `case` value must match. PHP compares them loosely by default and that can lead to unexpected results. |
18
18
|`dynamicCallOnStaticMethod`| Check that statically declared methods are called statically. |
19
19
|`disallowedEmpty`| Disallow `empty()` - it's a very loose comparison (see [manual](https://php.net/empty)), it's recommended to use more strict one. |
0 commit comments