From 59f8b3452e88344b79a4bb337c7498758d1da658 Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 15 Jul 2024 14:37:17 +0200 Subject: [PATCH] fix #13 update execute() return types --- src/JsonRPC/Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/JsonRPC/Client.php b/src/JsonRPC/Client.php index 913fada..5a22bd7 100644 --- a/src/JsonRPC/Client.php +++ b/src/JsonRPC/Client.php @@ -135,7 +135,7 @@ public function batch() /** * Send a batch request * - * @return Exception|Client + * @return array|Exception|null * * @throws Exception */ @@ -155,7 +155,7 @@ public function send() * @param string|null $requestId Request Id * @param string[] $headers Headers for this request * - * @return $this|Exception|Client + * @return $this|Exception|Client|array|null * * @throws Exception */ @@ -183,7 +183,7 @@ public function execute($procedure, array $params = [], array $reqattrs = [], $r * @param string $payload * @param string[] $headers * - * @return Exception|Client + * @return array|Exception|null * * @throws Exception */