From 9656e14a7b5ec5c16f68394207ab594cfb7af9f0 Mon Sep 17 00:00:00 2001 From: Patrik Foldes Date: Mon, 10 Jun 2024 13:45:11 +0300 Subject: [PATCH] fix --- src/spec/Responses.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/spec/Responses.php b/src/spec/Responses.php index a3623ae..e293fa1 100644 --- a/src/spec/Responses.php +++ b/src/spec/Responses.php @@ -173,6 +173,7 @@ public function getErrors(): array * @return boolean true on success or false on failure. * The return value will be casted to boolean if non-boolean was returned. */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return $this->hasResponse($offset); @@ -184,6 +185,7 @@ public function offsetExists($offset) * @param mixed $offset The offset to retrieve. * @return mixed Can return all value types. */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->getResponse($offset); @@ -195,6 +197,7 @@ public function offsetGet($offset) * @param mixed $offset The offset to assign the value to. * @param mixed $value The value to set. */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->addResponse($offset, $value); @@ -205,6 +208,7 @@ public function offsetSet($offset, $value) * @link http://php.net/manual/en/arrayaccess.offsetunset.php * @param mixed $offset The offset to unset. */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { $this->removeResponse($offset); @@ -216,6 +220,7 @@ public function offsetUnset($offset) * @return int The custom count as an integer. * The return value is cast to an integer. */ + #[\ReturnTypeWillChange] public function count() { return count($this->_responses); @@ -226,6 +231,7 @@ public function count() * @link http://php.net/manual/en/iteratoraggregate.getiterator.php * @return Traversable An instance of an object implementing Iterator or Traversable */ + #[\ReturnTypeWillChange] public function getIterator() { return new ArrayIterator($this->_responses);