Match upstream syntax

This commit is contained in:
Jellyfrog
2022-10-25 17:36:47 +02:00
parent e4ba3955c1
commit ab1a0bdbab
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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'])) {
+1 -1
View File
@@ -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;
}