Commit 8f31c91
committed
Generic/DisallowLongArraySyntax: remove unreachable condition
A check was added to the top of the file in 8d2a9dd to return an error
early if the array is missing an opening and/or a closing parenthesis.
This means that `$opener` can never be null as when the code reaches the
point where this variable is set,
`$tokens[$stackPtr]['parenthesis_opener']` cannot be null.1 parent 7c74d40 commit 8f31c91
File tree
1 file changed
+3
-7
lines changed- src/Standards/Generic/Sniffs/Arrays
1 file changed
+3
-7
lines changedLines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
69 | 65 | | |
70 | 66 | | |
71 | 67 | | |
| |||
0 commit comments