From 9becf988c98a2b3cff72dac0dc21b32cb61c66ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 10 Oct 2023 17:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- We.php | 2 +- WeChat/Contracts/DataArray.php | 8 ++++---- WePay/ProfitSharing.php | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/We.php b/We.php index 7dc7e8b..79188d1 100644 --- a/We.php +++ b/We.php @@ -94,7 +94,7 @@ class We * 定义当前版本 * @var string */ - const VERSION = '1.2.48'; + const VERSION = '1.2.49'; /** * 静态配置 diff --git a/WeChat/Contracts/DataArray.php b/WeChat/Contracts/DataArray.php index 6ddb4ad..7bda508 100644 --- a/WeChat/Contracts/DataArray.php +++ b/WeChat/Contracts/DataArray.php @@ -78,6 +78,7 @@ class DataArray implements ArrayAccess * 设置配置项值 * @param string $offset * @param string|array|null|integer $value + * @return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -103,6 +104,7 @@ class DataArray implements ArrayAccess /** * 清理配置项 * @param string|null $offset + * @return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset = null) @@ -117,14 +119,12 @@ class DataArray implements ArrayAccess /** * 获取配置项参数 * @param string|null $offset - * @return array|string|null|mixed + * @return mixed */ #[\ReturnTypeWillChange] public function offsetGet($offset = null) { - if (is_null($offset)) { - return $this->config; - } + if (is_null($offset)) return $this->config; return isset($this->config[$offset]) ? $this->config[$offset] : null; } } \ No newline at end of file diff --git a/WePay/ProfitSharing.php b/WePay/ProfitSharing.php index 7f9acf0..66cfc00 100644 --- a/WePay/ProfitSharing.php +++ b/WePay/ProfitSharing.php @@ -17,7 +17,6 @@ namespace WePay; use WeChat\Contracts\BasicWePay; -use WeChat\Contracts\Tools; /** * 微信分账