mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
Remove undefined variable usage
This commit is contained in:
@@ -728,7 +728,7 @@ class Twig_Environment
|
|||||||
public function addNodeVisitor(Twig_NodeVisitorInterface $visitor)
|
public function addNodeVisitor(Twig_NodeVisitorInterface $visitor)
|
||||||
{
|
{
|
||||||
if ($this->extensionInitialized) {
|
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);
|
$this->staging->addNodeVisitor($visitor);
|
||||||
|
|||||||
Reference in New Issue
Block a user