Skip to content

Commit b8e46cb

Browse files
remicolletjulienfalque
authored andcommitted
Fix escape sequence is invalid in character clas
1 parent 74666dc commit b8e46cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fixer/ControlStructure/NoSuperfluousElseifFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private function convertElseifToIf(Tokens $tokens, $index)
8484
$whitespace = '';
8585
for ($previous = $index - 1; $previous > 0; --$previous) {
8686
$token = $tokens[$previous];
87-
if ($token->isWhitespace() && Preg::match('/(\R\V*)$/', $token->getContent(), $matches)) {
87+
if ($token->isWhitespace() && Preg::match('/(\R\N*)$/', $token->getContent(), $matches)) {
8888
$whitespace = $matches[1];
8989

9090
break;

0 commit comments

Comments
 (0)