Merge pull request #628 from skipperbent/v5-development

Fixed offsetGet return type deprication warning
This commit is contained in:
Simon Sessingø
2023-02-09 03:34:48 +01:00
committed by GitHub
+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];