Skip to content

Commit 40edd32

Browse files
authored
Merge pull request #77 from Quazz/main
ArrayAccess Compatibility PHP 8.1+
2 parents 2e267e7 + 0a17b64 commit 40edd32

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Config.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,25 @@ private function merge(array $config)
6262
$this->config = array_replace($this->config, $config);
6363
}
6464

65+
#[\ReturnTypeWillChange]
6566
public function offsetExists($offset)
6667
{
6768
return isset($this->config[$offset]);
6869
}
6970

71+
#[\ReturnTypeWillChange]
7072
public function offsetGet($offset)
7173
{
7274
return $this->config[$offset];
7375
}
7476

77+
#[\ReturnTypeWillChange]
7578
public function offsetSet($offset, $value)
7679
{
7780
$this->config[$offset] = $value;
7881
}
7982

83+
#[\ReturnTypeWillChange]
8084
public function offsetUnset($offset)
8185
{
8286
unset($this->config[$offset]);

0 commit comments

Comments
 (0)