mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 21:07:18 +00:00
merged branch ftassi/remove-extension-name-from-exception (PR #1138)
This PR was merged into the master branch.
Discussion
----------
Remove undefined variable usage
See https://github.com/fabpot/Twig/commit/44873875ff6ca50c654e3bd28fe19b7ce5108f42#L1R728
Commits
-------
71d7d50 Remove undefined variable usage
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user