Skip to content

Commit

Permalink
bug #1727 Fix the profiler node visitor signature for Twig 2.0 (stof)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fabpot committed Jul 4, 2015
2 parents 616c1cc + e66b07d commit 8809993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Twig/Profiler/NodeVisitor/Profiler.php
Expand Up @@ -24,15 +24,15 @@ public function __construct($extensionName)
/**
* {@inheritdoc}
*/
public function enterNode(Twig_NodeInterface $node, Twig_Environment $env)
public function enterNode(Twig_Node $node, Twig_Environment $env)
{
return $node;
}

/**
* {@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();
Expand Down

0 comments on commit 8809993

Please sign in to comment.