mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-17 14:32:57 +00:00
Merge branch '1.x' into 2.x
* 1.x: Bump version Tweak docs Update CHANGELOG Support object init from variable
This commit is contained in:
@@ -84,6 +84,7 @@ class ExpressionParserTest extends TestCase
|
||||
return [
|
||||
['{{ [1, "a": "b"] }}'],
|
||||
['{{ {"a": "b", 2} }}'],
|
||||
['{{ {"a"} }}'],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -160,6 +161,12 @@ class ExpressionParserTest extends TestCase
|
||||
new ConstantExpression('c', 1),
|
||||
], 1),
|
||||
],
|
||||
['{{ {a, b} }}', new ArrayExpression([
|
||||
new ConstantExpression('a', 1),
|
||||
new NameExpression('a', 1),
|
||||
new ConstantExpression('b', 1),
|
||||
new NameExpression('b', 1),
|
||||
], 1)],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user