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