mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-02 20:29:20 +02:00
php 8 compatibility
This commit is contained in:
parent
1345ad97d5
commit
5d48a69649
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user