From dd369d348c4350e8466e260fbf4b96533c7e11e1 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 17 Dec 2021 04:12:44 +0800 Subject: [PATCH] 1 --- src/Base/Model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Base/Model.php b/src/Base/Model.php index 7c221a9..6cb7107 100644 --- a/src/Base/Model.php +++ b/src/Base/Model.php @@ -33,6 +33,7 @@ use Kiri\Exception\NotFindClassException; use Kiri\Kiri; use Kiri\ToArray; use ReflectionException; +use ReturnTypeWillChange; use validator\Validator; /** @@ -1000,7 +1001,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T * @param mixed $value * @throws Exception */ - public function offsetSet(mixed $offset, mixed $value) + #[ReturnTypeWillChange] public function offsetSet(mixed $offset, mixed $value) { $this->__set($offset, $value); } @@ -1009,7 +1010,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T * @param mixed $offset * @throws Exception */ - public function offsetUnset(mixed $offset) + #[ReturnTypeWillChange] public function offsetUnset(mixed $offset) { if (!isset($this->_attributes[$offset]) && !isset($this->_oldAttributes[$offset])) {