Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ use Symfony\Component\ExpressionLanguage\Compiler;
*/
class FunctionNode extends Node
{
public function __construct($name, Node $arguments)
public function __construct(string $name, Node $arguments)
{
parent::__construct(
['arguments' => $arguments],
@@ -37,7 +37,7 @@ class FunctionNode extends Node
$function = $compiler->getFunction($this->attributes['name']);
$compiler->raw(\call_user_func_array($function['compiler'], $arguments));
$compiler->raw($function['compiler'](...$arguments));
}
public function evaluate($functions, $values)
@@ -47,7 +47,7 @@ class FunctionNode extends Node
$arguments[] = $node->evaluate($functions, $values);
}
return \call_user_func_array($functions[$this->attributes['name']]['evaluator'], $arguments);
return $functions[$this->attributes['name']]['evaluator'](...$arguments);
}
public function toArray()