bug #1727 Fix the profiler node visitor signature for Twig 2.0 (stof)

This PR was merged into the 2.0-dev branch.

Discussion
----------

Fix the profiler node visitor signature for Twig 2.0

Commits
-------

e66b07d Fix the profiler node visitor signature for Twig 2.0
This commit is contained in:
Fabien Potencier
2015-07-04 11:48:10 +02:00
+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();