Skip to content

Commit

Permalink
Call correctly decorated service with splat argument
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Sep 6, 2023
1 parent a548713 commit fb9aa48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/NoCommerceRequestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit fb9aa48

Please sign in to comment.