Remove undefined variable usage

This commit is contained in:
Francesco Tassi
2013-07-15 16:26:07 +02:00
parent 545403be11
commit 71d7d50bf9
+1 -1
View 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);