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); - } - /** * 获取配置项的来源 *