diff --git a/src/Configuration/HostConfig.php b/src/Configuration/HostConfig.php index de972f46..462fe21d 100644 --- a/src/Configuration/HostConfig.php +++ b/src/Configuration/HostConfig.php @@ -7,16 +7,19 @@ class HostConfig extends HostConfigAbstract { + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->data->offsetGet($offset); } + #[\ReturnTypeWillChange] public function offsetSet($offset, $value): void { $this->data->offsetSet($offset, $value); } + #[\ReturnTypeWillChange] public function offsetUnset($offset): void { $this->data->offsetUnset($offset); diff --git a/src/Configuration/Storage/Node.php b/src/Configuration/Storage/Node.php index 198ed724..2b7f03e2 100644 --- a/src/Configuration/Storage/Node.php +++ b/src/Configuration/Storage/Node.php @@ -182,6 +182,7 @@ public function set(string $key, Node $value): void $this->value[$key] = $value; } + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->get($offset)->getValue(); @@ -192,6 +193,7 @@ public function offsetExists($offset): bool return $this->has($offset); } + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (!$value instanceof Node) { @@ -200,6 +202,7 @@ public function offsetSet($offset, $value) $this->set($offset, $value); } + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->value[$offset]);