Fix the profiler node visitor signature for Twig 2.0

This commit is contained in:
Christophe Coevoet
2015-07-03 14:46:22 +02:00
parent 616c1cceb1
commit e66b07df56
+2 -2
View File
@@ -24,7 +24,7 @@ class Twig_Profiler_NodeVisitor_Profiler implements Twig_NodeVisitorInterface
/**
* {@inheritdoc}
*/
public function enterNode(Twig_NodeInterface $node, Twig_Environment $env)
public function enterNode(Twig_Node $node, Twig_Environment $env)
{
return $node;
}
@@ -32,7 +32,7 @@ class Twig_Profiler_NodeVisitor_Profiler implements Twig_NodeVisitorInterface
/**
* {@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) {
$varName = $this->getVarName();