From 5d48a69649b6d5092067454e5ae09bf50c08c3d9 Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 8 Feb 2023 15:22:03 +0100 Subject: [PATCH] php 8 compatibility --- system/libs/Settings.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/libs/Settings.php b/system/libs/Settings.php index fd3644cf..ca5b2634 100644 --- a/system/libs/Settings.php +++ b/system/libs/Settings.php @@ -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; } } -} \ No newline at end of file +}