@@ -24,6 +24,7 @@ public function __construct($data)
24
24
$ this ->data = $ data ;
25
25
}
26
26
27
+ #[\ReturnTypeWillChange]
27
28
public function offsetSet ($ offset , $ value )
28
29
{
29
30
throw new \InvalidArgumentException (sprintf (
@@ -32,16 +33,19 @@ public function offsetSet($offset, $value)
32
33
));
33
34
}
34
35
36
+ #[\ReturnTypeWillChange]
35
37
public function offsetExists ($ offset )
36
38
{
37
39
return isset ($ this ->data [$ offset ]);
38
40
}
39
41
42
+ #[\ReturnTypeWillChange]
40
43
public function offsetUnset ($ offset )
41
44
{
42
45
unset($ this ->data [$ offset ]);
43
46
}
44
47
48
+ #[\ReturnTypeWillChange]
45
49
public function offsetGet ($ offset )
46
50
{
47
51
if (isset ($ this ->data [$ offset ])) {
@@ -55,26 +59,31 @@ public function offsetGet($offset)
55
59
}
56
60
}
57
61
62
+ #[\ReturnTypeWillChange]
58
63
public function current ()
59
64
{
60
65
return current ($ this ->data );
61
66
}
62
67
68
+ #[\ReturnTypeWillChange]
63
69
public function key ()
64
70
{
65
71
return key ($ this ->data );
66
72
}
67
73
74
+ #[\ReturnTypeWillChange]
68
75
public function next ()
69
76
{
70
77
return next ($ this ->data );
71
78
}
72
79
80
+ #[\ReturnTypeWillChange]
73
81
public function rewind ()
74
82
{
75
83
return reset ($ this ->data );
76
84
}
77
85
86
+ #[\ReturnTypeWillChange]
78
87
public function valid ()
79
88
{
80
89
return current ($ this ->data );
0 commit comments