return $node;
} public function leaveNode(Node
$node, Environment
$env): ?Node
{ if ($node instanceof ModuleNode
) { $this->defaultStrategy = false;
$this->safeVars =
[];
$this->blocks =
[];
} elseif ($node instanceof FilterExpression
) { return $this->
preEscapeFilterNode($node,
$env);
} elseif ($node instanceof PrintNode && false !==
$type =
$this->
needEscaping($env)) { $expression =
$node->
getNode('expr'
);
if ($expression instanceof ConditionalExpression &&
$this->
shouldUnwrapConditional($expression,
$env,
$type)) { return new DoNode($this->
unwrapConditional($expression,
$env,
$type),
$expression->
getTemplateLine());
} return $this->
escapePrintNode($node,
$env,
$type);
} if ($node instanceof AutoEscapeNode ||
$node instanceof BlockNode
) { array_pop($this->statusStack
);
}