mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 05:16:30 +00:00
Fix the profiler node visitor signature for Twig 2.0
This commit is contained in:
@@ -24,7 +24,7 @@ class Twig_Profiler_NodeVisitor_Profiler implements Twig_NodeVisitorInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function enterNode(Twig_NodeInterface $node, Twig_Environment $env)
|
public function enterNode(Twig_Node $node, Twig_Environment $env)
|
||||||
{
|
{
|
||||||
return $node;
|
return $node;
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ class Twig_Profiler_NodeVisitor_Profiler implements Twig_NodeVisitorInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
|
public function leaveNode(Twig_Node $node, Twig_Environment $env)
|
||||||
{
|
{
|
||||||
if ($node instanceof Twig_Node_Module) {
|
if ($node instanceof Twig_Node_Module) {
|
||||||
$varName = $this->getVarName();
|
$varName = $this->getVarName();
|
||||||
|
|||||||
Reference in New Issue
Block a user