@@ -173,8 +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]
177- public function offsetExists ($ offset )
176+ public function offsetExists ($ offset ): bool
178177 {
179178 return $ this ->hasResponse ($ offset );
180179 }
@@ -186,7 +185,7 @@ public function offsetExists($offset)
186185 * @return mixed Can return all value types.
187186 */
188187 #[\ReturnTypeWillChange]
189- public function offsetGet ($ offset )
188+ public function offsetGet ($ offset ) //: mixed
190189 {
191190 return $ this ->getResponse ($ offset );
192191 }
@@ -197,8 +196,7 @@ public function offsetGet($offset)
197196 * @param mixed $offset The offset to assign the value to.
198197 * @param mixed $value The value to set.
199198 */
200- #[\ReturnTypeWillChange]
201- public function offsetSet ($ offset , $ value )
199+ public function offsetSet ($ offset , $ value ): void
202200 {
203201 $ this ->addResponse ($ offset , $ value );
204202 }
@@ -208,8 +206,7 @@ public function offsetSet($offset, $value)
208206 * @link http://php.net/manual/en/arrayaccess.offsetunset.php
209207 * @param mixed $offset The offset to unset.
210208 */
211- #[\ReturnTypeWillChange]
212- public function offsetUnset ($ offset )
209+ public function offsetUnset ($ offset ): void
213210 {
214211 $ this ->removeResponse ($ offset );
215212 }
@@ -220,8 +217,7 @@ public function offsetUnset($offset)
220217 * @return int The custom count as an integer.
221218 * The return value is cast to an integer.
222219 */
223- #[\ReturnTypeWillChange]
224- public function count ()
220+ public function count (): int
225221 {
226222 return count ($ this ->_responses );
227223 }
@@ -231,8 +227,7 @@ public function count()
231227 * @link http://php.net/manual/en/iteratoraggregate.getiterator.php
232228 * @return Traversable An instance of an object implementing <b>Iterator</b> or <b>Traversable</b>
233229 */
234- #[\ReturnTypeWillChange]
235- public function getIterator ()
230+ public function getIterator (): Traversable
236231 {
237232 return new ArrayIterator ($ this ->_responses );
238233 }
0 commit comments