From 13dc5e87dd1d00b52cb772d4a17cee97791e5336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=94=81?= <52o@qq52o.cn> Date: Tue, 15 Feb 2022 11:10:15 +0800 Subject: [PATCH] Fix #1322 (#1323) Great work! --- var/Typecho/Config.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/Typecho/Config.php b/var/Typecho/Config.php index d0cd705a..cc1e8829 100644 --- a/var/Typecho/Config.php +++ b/var/Typecho/Config.php @@ -102,6 +102,7 @@ class Config implements \Iterator, \ArrayAccess * @access public * @return mixed */ + #[\ReturnTypeWillChange] public function current() { return current($this->currentConfig); @@ -124,6 +125,7 @@ class Config implements \Iterator, \ArrayAccess * @access public * @return mixed */ + #[\ReturnTypeWillChange] public function key() { return key($this->currentConfig); @@ -222,6 +224,7 @@ class Config implements \Iterator, \ArrayAccess * @param mixed $offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->currentConfig[$offset] ?? null;