diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 135d8d008..c4f82bf91 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -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);