Permalink
Browse files

removed unused variable

  • Loading branch information...
1 parent ceadaa6 commit 1819d97520079ade78abac7255e5b1e115bc7789 @fabpot committed Apr 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Twig/ExpressionParser.php
@@ -365,7 +365,7 @@ public function parseSubscriptExpression($node)
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());
}

0 comments on commit 1819d97

Please sign in to comment.