make sure arguments is an array

This commit is contained in:
2024-09-13 02:54:00 +02:00
parent 387ced5dce
commit d22997f2f9

View File

@@ -27,6 +27,7 @@ final class RedmineClient
$item->tag([$api, $method]);
$client = $this->getClient()->getApi($api);
$arguments = is_array($arguments) ? $arguments : [];
$value = \call_user_func_array([$client, $method], $arguments);
return $value;