mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
drop config array access support (#163)
This commit is contained in:
parent
47244373d7
commit
5e12af77a4
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取配置项的来源
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user