Commit e1f0e46
Generic/DisallowLongArraySyntax: improve code coverage
This commit adds two safeguard tests that do not trigger the sniff as
they use the array keyword in a method definition and a method call.
It also updates one of the existing tests to declare an array using
array in uppercase. This is already handled correctly by PHPCS but it
was not documented in a test.1 parent 2000a32 commit e1f0e46
File tree
2 files changed
+13
-1
lines changed- src/Standards/Generic/Tests/Arrays
2 files changed
+13
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments