Skip to content

Commit

Permalink
Avoid using call_user_func.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <[email protected]>
  • Loading branch information
crynobone committed Mar 18, 2016
1 parent 67c60bc commit 746c20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CacheDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,6 @@ protected function getCacheInfo()
*/
public function __call($method, $parameters)
{
return call_user_func([$this->query, $method], ...$parameters);
return $this->query->{$method}(...$parameters);
}
}

0 comments on commit 746c20d

Please sign in to comment.