38 ->write(
'echo $this->env->getExtension(\'sandbox\')->ensureToStringAllowed(')
39 ->subcompile($this->
getNode(
'expr'))
Compiles a node to PHP code.
Twig_Node_SandboxedPrint adds a check for the __toString() method when the variable is an object and ...
removeNodeFilter($node)
Removes node filters.
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.
__construct(Twig_Node_Expression $expr, $lineno, $tag=null)
Abstract class for all nodes that represents an expression.
getNode($name)
Gets a node by name.
Represents a node that outputs an expression.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.