Skip to content

Commit a512730

Browse files
Remove all usages of call_user_func_array()
1 parent 9959bd0 commit a512730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Templating/Helper/StopwatchHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __call($method, $arguments = array())
3737
{
3838
if (null !== $this->stopwatch) {
3939
if (method_exists($this->stopwatch, $method)) {
40-
return \call_user_func_array(array($this->stopwatch, $method), $arguments);
40+
return $this->stopwatch->{$method}(...$arguments);
4141
}
4242

4343
throw new \BadMethodCallException(sprintf('Method "%s" of Stopwatch does not exist', $method));

0 commit comments

Comments
 (0)