[TwigBundle] fixed PHP notice

This commit is contained in:
Fabien Potencier 2012-12-20 12:01:24 +01:00
parent 6f28fc2414
commit 1f281db261

View File

@ -36,6 +36,8 @@ class RenderTokenParser extends \Twig_TokenParser
$this->parser->getStream()->next();
$options = $this->parser->getExpressionParser()->parseExpression();
} else {
$options = new \Twig_Node_Expression_Array(array(), $token->getLine());
}
$this->parser->getStream()->expect(\Twig_Token::BLOCK_END_TYPE);