function Lexer::popState
4 calls to Lexer::popState()
- Lexer::lexBlock in vendor/
twig/ twig/ src/ Lexer.php - Lexer::lexInterpolation in vendor/
twig/ twig/ src/ Lexer.php - Lexer::lexString in vendor/
twig/ twig/ src/ Lexer.php - Lexer::lexVar in vendor/
twig/ twig/ src/ Lexer.php
File
-
vendor/
twig/ twig/ src/ Lexer.php, line 581
Class
- Lexer
- @author Fabien Potencier <fabien@symfony.com>
Namespace
TwigCode
private function popState() : void {
if (0 === \count($this->states)) {
throw new \LogicException('Cannot pop state without a previous state.');
}
$this->state = array_pop($this->states);
}