You've already forked redmine-bundle
make sure arguments is an array
This commit is contained in:
@@ -27,6 +27,7 @@ final class RedmineClient
|
|||||||
$item->tag([$api, $method]);
|
$item->tag([$api, $method]);
|
||||||
|
|
||||||
$client = $this->getClient()->getApi($api);
|
$client = $this->getClient()->getApi($api);
|
||||||
|
$arguments = is_array($arguments) ? $arguments : [];
|
||||||
$value = \call_user_func_array([$client, $method], $arguments);
|
$value = \call_user_func_array([$client, $method], $arguments);
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
|
|||||||
Reference in New Issue
Block a user