drop config array access support (#163)

This commit is contained in:
sunxyw 2022-08-28 14:12:01 +08:00 committed by GitHub
parent 47244373d7
commit 5e12af77a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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