Remove undefined variable usage
authorFrancesco Tassi <tassi.francesco@gmail.com>
Mon, 15 Jul 2013 14:26:07 +0000 (16:26 +0200)
committerFrancesco Tassi <tassi.francesco@gmail.com>
Mon, 15 Jul 2013 14:26:07 +0000 (16:26 +0200)
lib/Twig/Environment.php

index 135d8d0..c4f82bf 100644 (file)
@@ -728,7 +728,7 @@ class Twig_Environment
     public function addNodeVisitor(Twig_NodeVisitorInterface $visitor)
     {
         if ($this->extensionInitialized) {
-            throw new LogicException('Unable to add a node visitor as extensions have already been initialized.', $extension->getName());
+            throw new LogicException('Unable to add a node visitor as extensions have already been initialized.');
         }
 
         $this->staging->addNodeVisitor($visitor);