Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[TwigBundle] removed deprecated syntax

  • Loading branch information...
commit 4f4a5d16436fcd2aa420d5a14d7b39aff2dfea5e 1 parent 45bd413
@fabpot fabpot authored
View
23 src/Symfony/Bundle/TwigBundle/Tests/TokenParser/RenderTokenParserTest.php
@@ -54,29 +54,6 @@ public function getTestsForRender()
'render'
)
),
- // deprecated in 2.2
- array(
- '{% render "foo" with {foo: 2} %}',
- new RenderNode(
- new \Twig_Node_Expression_Constant('foo', 1),
- new \Twig_Node_Expression_Array(array(), 1),
- 1,
- 'render'
- )
- ),
- // deprecated in 2.2
- array(
- '{% render "foo" with {foo: 2}, {foo: 1} %}',
- new RenderNode(
- new \Twig_Node_Expression_Constant('foo', 1),
- new \Twig_Node_Expression_Array(array(
- new \Twig_Node_Expression_Constant('foo', 1),
- new \Twig_Node_Expression_Constant('1', 1),
- ), 1),
- 1,
- 'render'
- )
- ),
);
}
}
View
9 src/Symfony/Bundle/TwigBundle/TokenParser/RenderTokenParser.php
@@ -31,15 +31,6 @@ public function parse(\Twig_Token $token)
{
$expr = $this->parser->getExpressionParser()->parseExpression();
- // attributes (not used anymore, kept for BC reasons)
- // @deprecated in 2.2 and will be removed in 2.3
- if ($this->parser->getStream()->test(\Twig_Token::NAME_TYPE, 'with')) {
- $this->parser->getStream()->next();
- $attributes = $this->parser->getExpressionParser()->parseExpression();
- } else {
- $attributes = new \Twig_Node_Expression_Array(array(), $token->getLine());
- }
-
// options
if ($this->parser->getStream()->test(\Twig_Token::PUNCTUATION_TYPE, ',')) {
$this->parser->getStream()->next();
Please sign in to comment.
Something went wrong with that request. Please try again.