We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 93d381d + 3561bf9 commit 59f1560Copy full SHA for 59f1560
src/Invoker.php
@@ -57,8 +57,7 @@ public function call($callable, array $parameters = [])
57
58
$args = $this->parameterResolver->getParameters($callableReflection, $parameters, []);
59
60
- // 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.
+ // Sort by array key because call_user_func_array ignores numeric keys
62
ksort($args);
63
64
// Check all parameters are resolved
@@ -72,7 +71,7 @@ public function call($callable, array $parameters = [])
72
71
));
73
}
74
75
- return $callable(...$args);
+ return call_user_func_array($callable, $args);
76
77
78
/**
0 commit comments