Skip to content

Commit 1e18f75

Browse files
committed
Squiz/DisallowMultipleAssignments: remove irrelevant token
The `foreach()` loop straight after this bit of code checks for parenthesis owners, but `T_CASE` is not a token which can be marked as a parenthesis owner, so will never match.
1 parent 892320f commit 1e18f75

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Standards/Squiz/Sniffs/PHP/DisallowMultipleAssignmentsSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ public function process(File $phpcsFile, int $stackPtr)
173173
T_IF => T_IF,
174174
T_ELSEIF => T_ELSEIF,
175175
T_SWITCH => T_SWITCH,
176-
T_CASE => T_CASE,
177176
T_FOR => T_FOR,
178177
T_MATCH => T_MATCH,
179178
];

0 commit comments

Comments
 (0)