diff --git a/src/Container.php b/src/Container.php index 1ee7699..9e465bf 100644 --- a/src/Container.php +++ b/src/Container.php @@ -162,7 +162,7 @@ public function call(callable $callback, array $map = []) { $params = Reflection::createFromCallable($callback)->getParameters(); - return call_user_func_array($callback, $this->resolve($params, $map)); + return $callback(...$this->resolve($params, $map)); } /**