We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aa90b3 commit 75b679fCopy full SHA for 75b679f
TwigCS/src/Token/Tokenizer.php
@@ -704,7 +704,7 @@ protected function lexPunctuation(): void
704
do {
705
array_pop($this->bracketsAndTernary);
706
$lastBracket = end($this->bracketsAndTernary);
707
- } while ('?' === $lastBracket[0]);
+ } while (false !== $lastBracket && '?' === $lastBracket[0]);
708
709
// This is maybe the end of the variable, start again.
710
$this->lexVariable();
0 commit comments