@@ -80,6 +80,7 @@ public function contains( $key, $strict = true ) {
80
80
*
81
81
* @return int
82
82
*/
83
+ #[\ReturnTypeWillChange]
83
84
public function count () {
84
85
return count ( $ this ->items );
85
86
}
@@ -213,6 +214,7 @@ public function get( $key, $default = null ) {
213
214
*
214
215
* @return \ArrayIterator
215
216
*/
217
+ #[\ReturnTypeWillChange]
216
218
public function getIterator () {
217
219
return new \ArrayIterator ( $ this ->items );
218
220
}
@@ -358,6 +360,7 @@ public function intersectByKeys( array $keys ) {
358
360
*
359
361
* @return array
360
362
*/
363
+ #[\ReturnTypeWillChange]
361
364
public function jsonSerialize () {
362
365
return $ this ->items ;
363
366
}
@@ -412,6 +415,7 @@ public function merge( array $items ) {
412
415
*
413
416
* @return bool
414
417
*/
418
+ #[\ReturnTypeWillChange]
415
419
public function offsetExists ( $ key ) {
416
420
return array_key_exists ( $ key , $ this ->items );
417
421
}
@@ -423,6 +427,7 @@ public function offsetExists( $key ) {
423
427
*
424
428
* @return mixed
425
429
*/
430
+ #[\ReturnTypeWillChange]
426
431
public function offsetGet ( $ key ) {
427
432
return $ this ->items [ $ key ];
428
433
}
@@ -433,6 +438,7 @@ public function offsetGet( $key ) {
433
438
* @param mixed $key Key to set
434
439
* @param mixed $value Value to set
435
440
*/
441
+ #[\ReturnTypeWillChange]
436
442
public function offsetSet ( $ key , $ value ) {
437
443
if ( null === $ key ) {
438
444
$ this ->items [] = $ value ;
@@ -446,6 +452,7 @@ public function offsetSet( $key, $value ) {
446
452
*
447
453
* @param mixed $key Key to unset
448
454
*/
455
+ #[\ReturnTypeWillChange]
449
456
public function offsetUnset ( $ key ) {
450
457
unset( $ this ->items [ $ key ] );
451
458
}
0 commit comments