Great work!
This commit is contained in:
沈唁
2022-02-15 11:10:15 +08:00
committed by GitHub
parent 0b021e5e7d
commit 13dc5e87dd
+3
View File
@@ -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;