diff --git a/src/Routing/NoCommerceRequestContext.php b/src/Routing/NoCommerceRequestContext.php index 4714022..288916b 100644 --- a/src/Routing/NoCommerceRequestContext.php +++ b/src/Routing/NoCommerceRequestContext.php @@ -55,7 +55,7 @@ public function __call(string $name, array $arguments) { $callback = [$this->decorated, $name]; if (\is_callable($callback)) { - return \call_user_func($callback, $arguments); + return \call_user_func($callback, ...$arguments); } throw new Exception(sprintf('Method %s not found for class "%s"', $name, \get_class($this->decorated)));