$message], ['code' => $code], $lineno, $tag); } /** * Compiles the node to PHP. * * @param Compiler $compiler A Twig Compiler instance * @return void * @throws LogicException */ public function compile(Compiler $compiler): void { $compiler->addDebugInfo($this); $compiler ->write('throw new \Grav\Common\Twig\Exception\TwigException(') ->subcompile($this->getNode('message')) ->write(', ') ->write($this->getAttribute('code') ?: 500) ->write(");\n"); } }