Skip to content

Commit 9656e14

Browse files
author
Patrik Foldes
committed
fix
1 parent 3994e13 commit 9656e14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/spec/Responses.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ public function getErrors(): array
173173
* @return boolean true on success or false on failure.
174174
* The return value will be casted to boolean if non-boolean was returned.
175175
*/
176+
#[\ReturnTypeWillChange]
176177
public function offsetExists($offset)
177178
{
178179
return $this->hasResponse($offset);
@@ -184,6 +185,7 @@ public function offsetExists($offset)
184185
* @param mixed $offset The offset to retrieve.
185186
* @return mixed Can return all value types.
186187
*/
188+
#[\ReturnTypeWillChange]
187189
public function offsetGet($offset)
188190
{
189191
return $this->getResponse($offset);
@@ -195,6 +197,7 @@ public function offsetGet($offset)
195197
* @param mixed $offset The offset to assign the value to.
196198
* @param mixed $value The value to set.
197199
*/
200+
#[\ReturnTypeWillChange]
198201
public function offsetSet($offset, $value)
199202
{
200203
$this->addResponse($offset, $value);
@@ -205,6 +208,7 @@ public function offsetSet($offset, $value)
205208
* @link http://php.net/manual/en/arrayaccess.offsetunset.php
206209
* @param mixed $offset The offset to unset.
207210
*/
211+
#[\ReturnTypeWillChange]
208212
public function offsetUnset($offset)
209213
{
210214
$this->removeResponse($offset);
@@ -216,6 +220,7 @@ public function offsetUnset($offset)
216220
* @return int The custom count as an integer.
217221
* The return value is cast to an integer.
218222
*/
223+
#[\ReturnTypeWillChange]
219224
public function count()
220225
{
221226
return count($this->_responses);
@@ -226,6 +231,7 @@ public function count()
226231
* @link http://php.net/manual/en/iteratoraggregate.getiterator.php
227232
* @return Traversable An instance of an object implementing <b>Iterator</b> or <b>Traversable</b>
228233
*/
234+
#[\ReturnTypeWillChange]
229235
public function getIterator()
230236
{
231237
return new ArrayIterator($this->_responses);

0 commit comments

Comments
 (0)