From 859ddda80175eaaec9d739475457c1645b10e9ba Mon Sep 17 00:00:00 2001 From: kakuilan Date: Thu, 15 Jun 2023 10:19:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=20BaseService::$result=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=BAmixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Services/BaseService.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Services/BaseService.php b/src/Services/BaseService.php index 41f0bde..b08ca61 100644 --- a/src/Services/BaseService.php +++ b/src/Services/BaseService.php @@ -37,9 +37,9 @@ class BaseService extends StrictObject { /** * 处理结果 - * @var array + * @var mixed */ - public $result = []; + public $result = null; /** @@ -113,19 +113,19 @@ public function getErrorInfo(): array { /** * 设置结果 - * @param array $arr + * @param mixed $arr * @return void */ - public function setResult(array $arr): void { + public function setResult($arr): void { $this->result = $arr; } /** * 获取结果 - * @return array + * @return mixed */ - public function getResult(): array { + public function getResult(): mixed { return $this->result; }