From d22997f2f9ea1827363d319b8cfceb91769d43c0 Mon Sep 17 00:00:00 2001 From: magdev Date: Fri, 13 Sep 2024 02:54:00 +0200 Subject: [PATCH] make sure arguments is an array --- src/Client/RedmineClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Client/RedmineClient.php b/src/Client/RedmineClient.php index 0b20430..4978ad3 100644 --- a/src/Client/RedmineClient.php +++ b/src/Client/RedmineClient.php @@ -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;