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.
2 parents 2aa90b3 + 75b679f commit 34777c6Copy full SHA for 34777c6
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