diff --git a/LibreNMS/ObjectCache.php b/LibreNMS/ObjectCache.php index 8480dfb773..e7c0c258d6 100644 --- a/LibreNMS/ObjectCache.php +++ b/LibreNMS/ObjectCache.php @@ -91,7 +91,7 @@ class ObjectCache implements ArrayAccess * @return mixed */ #[\ReturnTypeWillChange] - public function offsetGet($obj) + public function offsetGet($obj): mixed { if (isset($this->data[$obj])) { if (isset($this->data[$obj]['value'])) { diff --git a/LibreNMS/Util/DynamicConfigItem.php b/LibreNMS/Util/DynamicConfigItem.php index 133c0be3d4..132b38763c 100644 --- a/LibreNMS/Util/DynamicConfigItem.php +++ b/LibreNMS/Util/DynamicConfigItem.php @@ -225,7 +225,7 @@ class DynamicConfigItem implements \ArrayAccess } #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->$offset) ? $this->$offset : null; }