Fixed offsetGet return type deprication warning

This commit is contained in:
sessingo
2023-02-09 03:29:41 +01:00
parent f0a4b6e46f
commit e34fe47a04
+1 -1
View File
@@ -81,7 +81,7 @@ class InputItem implements ArrayAccess, IInputItem, IteratorAggregate
return isset($this->value[$offset]); return isset($this->value[$offset]);
} }
public function offsetGet($offset) public function offsetGet($offset): ?self
{ {
if ($this->offsetExists($offset) === true) { if ($this->offsetExists($offset) === true) {
return $this->value[$offset]; return $this->value[$offset];