mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Match upstream syntax
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user