@@ -173,6 +173,7 @@ public function getErrors(): array
173
173
* @return boolean true on success or false on failure.
174
174
* The return value will be casted to boolean if non-boolean was returned.
175
175
*/
176
+ #[\ReturnTypeWillChange]
176
177
public function offsetExists ($ offset )
177
178
{
178
179
return $ this ->hasResponse ($ offset );
@@ -184,6 +185,7 @@ public function offsetExists($offset)
184
185
* @param mixed $offset The offset to retrieve.
185
186
* @return mixed Can return all value types.
186
187
*/
188
+ #[\ReturnTypeWillChange]
187
189
public function offsetGet ($ offset )
188
190
{
189
191
return $ this ->getResponse ($ offset );
@@ -195,6 +197,7 @@ public function offsetGet($offset)
195
197
* @param mixed $offset The offset to assign the value to.
196
198
* @param mixed $value The value to set.
197
199
*/
200
+ #[\ReturnTypeWillChange]
198
201
public function offsetSet ($ offset , $ value )
199
202
{
200
203
$ this ->addResponse ($ offset , $ value );
@@ -205,6 +208,7 @@ public function offsetSet($offset, $value)
205
208
* @link http://php.net/manual/en/arrayaccess.offsetunset.php
206
209
* @param mixed $offset The offset to unset.
207
210
*/
211
+ #[\ReturnTypeWillChange]
208
212
public function offsetUnset ($ offset )
209
213
{
210
214
$ this ->removeResponse ($ offset );
@@ -216,6 +220,7 @@ public function offsetUnset($offset)
216
220
* @return int The custom count as an integer.
217
221
* The return value is cast to an integer.
218
222
*/
223
+ #[\ReturnTypeWillChange]
219
224
public function count ()
220
225
{
221
226
return count ($ this ->_responses );
@@ -226,6 +231,7 @@ public function count()
226
231
* @link http://php.net/manual/en/iteratoraggregate.getiterator.php
227
232
* @return Traversable An instance of an object implementing <b>Iterator</b> or <b>Traversable</b>
228
233
*/
234
+ #[\ReturnTypeWillChange]
229
235
public function getIterator ()
230
236
{
231
237
return new ArrayIterator ($ this ->_responses );
0 commit comments