Skip to content

Commit 43adc22

Browse files
💄 Fix lint
1 parent 15c1c3c commit 43adc22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TwigCS/Token/Tokenizer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ protected function lexComment()
370370

371371
if (!isset($match[0])) {
372372
throw new Exception('Unclosed comment');
373-
} elseif ($match[0][1] === $this->cursor) {
373+
}
374+
if ($match[0][1] === $this->cursor) {
374375
$this->pushToken(Token::COMMENT_END_TYPE, $match[0][0]);
375376
$this->moveCursor($match[0][0]);
376377
$this->moveCurrentPosition();

0 commit comments

Comments
 (0)