We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12706c4 commit a55ce7cCopy full SHA for a55ce7c
src/Symfony/Component/ExpressionLanguage/Node/GetAttrNode.php
@@ -86,7 +86,13 @@ public function evaluate($functions, $values)
86
throw new \RuntimeException(sprintf('Unable to call method "%s" of object "%s".', $this->nodes['attribute']->attributes['value'], \get_class($obj)));
87
}
88
89
- return \call_user_func_array($toCall, $this->nodes['arguments']->evaluate($functions, $values));
+ $arguments = $this->nodes['arguments']->evaluate($functions, $values);
90
+
91
+ if (\PHP_VERSION_ID >= 80000) {
92
+ $arguments = array_values($arguments);
93
+ }
94
95
+ return \call_user_func_array($toCall, $arguments);
96
97
case self::ARRAY_CALL:
98
$array = $this->nodes['node']->evaluate($functions, $values);
0 commit comments