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