We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 74f216c + 84ada78 commit 14415f9Copy full SHA for 14415f9
src/Invoker.php
@@ -57,7 +57,8 @@ public function call($callable, array $parameters = [])
57
58
$args = $this->parameterResolver->getParameters($callableReflection, $parameters, []);
59
60
- // Sort by array key because call_user_func_array ignores numeric keys
+ // Sort by array keys is needed since the resolved arguments returned by the resolver are indexed by numeric keys
61
+ // that correspond to the parameters of the callable, but may be out of order.
62
ksort($args);
63
64
// Check all parameters are resolved
@@ -71,7 +72,7 @@ public function call($callable, array $parameters = [])
71
72
));
73
}
74
- return call_user_func_array($callable, $args);
75
+ return $callable(...$args);
76
77
78
/**
0 commit comments