File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 17
17
* Variables assigned in ` while ` loop condition and ` for ` loop initial assignment cannot be used after the loop.
18
18
* Variables set in foreach that's always looped thanks to non-empty arrays cannot be used after the loop.
19
19
* Types in ` switch ` condition and ` case ` value must match. PHP compares them loosely by default and that can lead to unexpected results.
20
- * Statically declared methods are called statically.
20
+ * Check that statically declared methods are called statically.
21
21
* Disallow ` empty() ` - it's a very loose comparison (see [ manual] ( https://php.net/empty ) ), it's recommended to use more strict one.
22
22
* Disallow variable variables (` $$foo ` , ` $this->$method() ` etc.)
23
23
* Disallow overwriting variables with foreach key and value variables
You can’t perform that action at this time.
0 commit comments