From 1819d97520079ade78abac7255e5b1e115bc7789 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 9 Apr 2013 18:55:44 +0200 Subject: [PATCH] removed unused variable --- lib/Twig/ExpressionParser.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/ExpressionParser.php b/lib/Twig/ExpressionParser.php index 131c6c2..9cf1934 100644 --- a/lib/Twig/ExpressionParser.php +++ b/lib/Twig/ExpressionParser.php @@ -365,7 +365,7 @@ class Twig_ExpressionParser throw new Twig_Error_Syntax('Expected name or number', $lineno, $this->parser->getFilename()); } - if ($node instanceof Twig_Node_Expression_Name && null !== $alias = $this->parser->getImportedSymbol('template', $node->getAttribute('name'))) { + if ($node instanceof Twig_Node_Expression_Name && null !== $this->parser->getImportedSymbol('template', $node->getAttribute('name'))) { if (!$arg instanceof Twig_Node_Expression_Constant) { throw new Twig_Error_Syntax(sprintf('Dynamic macro names are not supported (called on "%s")', $node->getAttribute('name')), $token->getLine(), $this->parser->getFilename()); } -- 1.7.2.5