Skip to content

Commit 75b679f

Browse files
💄 Avoid warning
1 parent 2aa90b3 commit 75b679f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TwigCS/src/Token/Tokenizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ protected function lexPunctuation(): void
704704
do {
705705
array_pop($this->bracketsAndTernary);
706706
$lastBracket = end($this->bracketsAndTernary);
707-
} while ('?' === $lastBracket[0]);
707+
} while (false !== $lastBracket && '?' === $lastBracket[0]);
708708

709709
// This is maybe the end of the variable, start again.
710710
$this->lexVariable();

0 commit comments

Comments
 (0)