From 5e12af77a467e3d8f52908c3381d969f08bf9b28 Mon Sep 17 00:00:00 2001 From: sunxyw <31698606+sunxyw@users.noreply.github.com> Date: Sun, 28 Aug 2022 14:12:01 +0800 Subject: [PATCH] drop config array access support (#163) --- src/ZM/Config/ZMConfig.php | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/ZM/Config/ZMConfig.php b/src/ZM/Config/ZMConfig.php index 30eb7248..70016028 100644 --- a/src/ZM/Config/ZMConfig.php +++ b/src/ZM/Config/ZMConfig.php @@ -9,7 +9,7 @@ use OneBot\V12\Config\Config; use ZM\Exception\ConfigException; use ZM\Framework; -class ZMConfig implements \ArrayAccess +class ZMConfig { use Singleton; @@ -241,27 +241,6 @@ class ZMConfig implements \ArrayAccess return $this->holder; } - public function offsetExists($offset): bool - { - return $this->get($offset) !== null; - } - - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->get($offset); - } - - public function offsetSet($offset, $value): void - { - $this->set($offset, $value); - } - - public function offsetUnset($offset): void - { - $this->set($offset); - } - /** * 获取配置项的来源 *