php 8 compatibility

This commit is contained in:
slawkens 2023-02-08 15:22:03 +01:00
parent 1345ad97d5
commit 5d48a69649

View File

@ -52,6 +52,7 @@ class Settings implements ArrayAccess
}
}
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@ -91,10 +92,12 @@ class Settings implements ArrayAccess
$this->settings[$pluginName][$key] = $value['value'];
}
#[\ReturnTypeWillChange]
public function offsetExists($offset) {
return isset($this->settings[$offset]);
}
#[\ReturnTypeWillChange]
public function offsetUnset($offset) {
unset($this->settings[$offset]);
}
@ -107,6 +110,7 @@ class Settings implements ArrayAccess
* @param mixed $offset
* @return array|mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
// try cache hit
@ -178,4 +182,4 @@ class Settings implements ArrayAccess
$this->plugins[$pluginName] = require $file;
}
}
}
}