diff --git a/src/Foundation/Concerns/HasOptions.php b/src/Foundation/Concerns/HasOptions.php index 8fdd85f..c781627 100644 --- a/src/Foundation/Concerns/HasOptions.php +++ b/src/Foundation/Concerns/HasOptions.php @@ -110,6 +110,7 @@ public function offsetExists($offset): bool return isset($this->options[$offset]); } + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->getOption($offset); diff --git a/src/Foundation/Response.php b/src/Foundation/Response.php index 4e45b8a..aa7828e 100644 --- a/src/Foundation/Response.php +++ b/src/Foundation/Response.php @@ -542,6 +542,7 @@ public function offsetExists($offset): bool * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->json()[$offset] ?? null;