@@ -173,8 +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]
177
- public function offsetExists ($ offset )
176
+ public function offsetExists ($ offset ): bool
178
177
{
179
178
return $ this ->hasResponse ($ offset );
180
179
}
@@ -186,7 +185,7 @@ public function offsetExists($offset)
186
185
* @return mixed Can return all value types.
187
186
*/
188
187
#[\ReturnTypeWillChange]
189
- public function offsetGet ($ offset )
188
+ public function offsetGet ($ offset ) //: mixed
190
189
{
191
190
return $ this ->getResponse ($ offset );
192
191
}
@@ -197,8 +196,7 @@ public function offsetGet($offset)
197
196
* @param mixed $offset The offset to assign the value to.
198
197
* @param mixed $value The value to set.
199
198
*/
200
- #[\ReturnTypeWillChange]
201
- public function offsetSet ($ offset , $ value )
199
+ public function offsetSet ($ offset , $ value ): void
202
200
{
203
201
$ this ->addResponse ($ offset , $ value );
204
202
}
@@ -208,8 +206,7 @@ public function offsetSet($offset, $value)
208
206
* @link http://php.net/manual/en/arrayaccess.offsetunset.php
209
207
* @param mixed $offset The offset to unset.
210
208
*/
211
- #[\ReturnTypeWillChange]
212
- public function offsetUnset ($ offset )
209
+ public function offsetUnset ($ offset ): void
213
210
{
214
211
$ this ->removeResponse ($ offset );
215
212
}
@@ -220,8 +217,7 @@ public function offsetUnset($offset)
220
217
* @return int The custom count as an integer.
221
218
* The return value is cast to an integer.
222
219
*/
223
- #[\ReturnTypeWillChange]
224
- public function count ()
220
+ public function count (): int
225
221
{
226
222
return count ($ this ->_responses );
227
223
}
@@ -231,8 +227,7 @@ public function count()
231
227
* @link http://php.net/manual/en/iteratoraggregate.getiterator.php
232
228
* @return Traversable An instance of an object implementing <b>Iterator</b> or <b>Traversable</b>
233
229
*/
234
- #[\ReturnTypeWillChange]
235
- public function getIterator ()
230
+ public function getIterator (): Traversable
236
231
{
237
232
return new ArrayIterator ($ this ->_responses );
238
233
}
0 commit comments