diff --git a/We.php b/We.php index f05c663..3abb222 100644 --- a/We.php +++ b/We.php @@ -91,7 +91,7 @@ class We * 定义当前版本 * @var string */ - const VERSION = '1.2.35'; + const VERSION = '1.2.36'; /** * 静态配置 diff --git a/WeChat/Contracts/DataArray.php b/WeChat/Contracts/DataArray.php index f9f902b..0c12018 100644 --- a/WeChat/Contracts/DataArray.php +++ b/WeChat/Contracts/DataArray.php @@ -77,6 +77,7 @@ class DataArray implements ArrayAccess * @param string $offset * @param string|array|null|integer $value */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -91,6 +92,7 @@ class DataArray implements ArrayAccess * @param string $offset * @return bool */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->config[$offset]); @@ -100,6 +102,7 @@ class DataArray implements ArrayAccess * 清理配置项 * @param string|null $offset */ + #[\ReturnTypeWillChange] public function offsetUnset($offset = null) { if (is_null($offset)) { @@ -114,6 +117,7 @@ class DataArray implements ArrayAccess * @param string|null $offset * @return array|string|null */ + #[\ReturnTypeWillChange] public function offsetGet($offset = null) { if (is_null($offset)) {