@@ -507,6 +507,7 @@ public function toJson($key = null, $options = 0)
507
507
* @param int|string $key
508
508
* @return bool
509
509
*/
510
+ #[\ReturnTypeWillChange]
510
511
public function offsetExists ($ key )
511
512
{
512
513
return $ this ->has ($ key );
@@ -518,6 +519,7 @@ public function offsetExists($key)
518
519
* @param int|string $key
519
520
* @return mixed
520
521
*/
522
+ #[\ReturnTypeWillChange]
521
523
public function offsetGet ($ key )
522
524
{
523
525
return $ this ->get ($ key );
@@ -529,6 +531,7 @@ public function offsetGet($key)
529
531
* @param int|string|null $key
530
532
* @param mixed $value
531
533
*/
534
+ #[\ReturnTypeWillChange]
532
535
public function offsetSet ($ key , $ value )
533
536
{
534
537
if (is_null ($ key )) {
@@ -545,6 +548,7 @@ public function offsetSet($key, $value)
545
548
*
546
549
* @param int|string $key
547
550
*/
551
+ #[\ReturnTypeWillChange]
548
552
public function offsetUnset ($ key )
549
553
{
550
554
$ this ->delete ($ key );
@@ -562,6 +566,7 @@ public function offsetUnset($key)
562
566
* @param int|string|null $key
563
567
* @return int
564
568
*/
569
+ #[\ReturnTypeWillChange]
565
570
public function count ($ key = null )
566
571
{
567
572
return count ($ this ->get ($ key ));
@@ -578,6 +583,7 @@ public function count($key = null)
578
583
*
579
584
* @return \ArrayIterator
580
585
*/
586
+ #[\ReturnTypeWillChange]
581
587
public function getIterator ()
582
588
{
583
589
return new ArrayIterator ($ this ->items );
0 commit comments