From a498fb62670f4ae7c15fda5a0df78b5d5e1edf5c Mon Sep 17 00:00:00 2001 From: wandoubaba517 Date: Sat, 23 Dec 2023 12:34:42 +0800 Subject: [PATCH] =?UTF-8?q?jsonrpc/Client:=20=E4=BF=AE=E5=A4=8D=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=AE=A2=E6=88=B7=E7=AB=AF=E4=B8=8D=E4=BC=A0=E5=8F=82?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsonrpc/Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jsonrpc/Client.php b/jsonrpc/Client.php index fffae74..76a1f5c 100644 --- a/jsonrpc/Client.php +++ b/jsonrpc/Client.php @@ -101,13 +101,13 @@ class Client /** * 异步调用实例 - * @var string + * @var array */ protected static $asyncInstances = array(); /** * 同步调用实例 - * @var string + * @var array */ protected static $instances = array(); @@ -182,7 +182,7 @@ class Client * @throws Exception * @return */ - public function __call($method, $arguments) + public function __call($method, $arguments = []) { // 判断是否是异步发送 if (0 === strpos($method, self::ASYNC_SEND_PREFIX)) {