Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Expression Language] fix foo[index] #10042
This patch fixes the usage of variables as key in GetAttrNode.
$language = new \Symfony\Component\ExpressionLanguage\ExpressionLanguage(); $language->evaluate('foo[i]', ['foo' => ['a', 'b', 'c'], 'i' => 1]); // 'b'