Commit f036961
committed
Generic/DisallowLongArraySyntax: move an intentional parse error test
This commit moves an intentional parse error test to its own file. The
parse error test does not trigger
DisallowLongArraySyntaxSniff::process() as this sniff listen for
T_ARRAY and the `array` keyword without parentheses is tokenized by
PHPCS as T_STRING. Keeping the test as I'm not sure why it was
introduced and it might protect against regressions in the future if
things change in the tokenizer.1 parent 30b3148 commit f036961
File tree
3 files changed
+7
-2
lines changed- src/Standards/Generic/Tests/Arrays
3 files changed
+7
-2
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments