From 92cfd9989c37160f50720eeb7ca4a9914ba2c135 Mon Sep 17 00:00:00 2001 From: overtrue Date: Fri, 4 Mar 2022 10:33:27 +0800 Subject: [PATCH] Fixed w7corp/easywechat#2384 --- src/Config.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Config.php b/src/Config.php index dd51ce7..35c9dc2 100644 --- a/src/Config.php +++ b/src/Config.php @@ -86,26 +86,30 @@ public function has(string $key): bool return (bool) $this->get($key); } - public function offsetExists($offset) + public function offsetExists($offset): bool { return array_key_exists($offset, $this->config); } + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->get($offset); } + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->set($offset, $value); } + #[\ReturnTypeWillChange] public function offsetUnset($offset) { $this->set($offset, null); } + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->config;