Skip to content

Commit 34777c6

Browse files
Merge pull request #129 from VincentLanglet/fix2
💄 Avoid warning
2 parents 2aa90b3 + 75b679f commit 34777c6

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)