File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,19 @@ trait Enumerable
66{
77 protected $ position = 0 ;
88
9+ #[\ReturnTypeWillChange]
910 public function offsetExists ($ offset )
1011 {
1112 return isset ($ this ->items [$ offset ]);
1213 }
1314
15+ #[\ReturnTypeWillChange]
1416 public function offsetGet ($ offset )
1517 {
1618 return $ this ->items [$ offset ];
1719 }
1820
21+ #[\ReturnTypeWillChange]
1922 public function offsetSet ($ key , $ value )
2023 {
2124 if (is_null ($ key )) {
@@ -25,31 +28,37 @@ public function offsetSet($key, $value)
2528 }
2629 }
2730
31+ #[\ReturnTypeWillChange]
2832 public function offsetUnset ($ offset )
2933 {
3034 unset($ this ->items [$ offset ]);
3135 }
3236
37+ #[\ReturnTypeWillChange]
3338 public function rewind ()
3439 {
3540 $ this ->position = 0 ;
3641 }
3742
43+ #[\ReturnTypeWillChange]
3844 public function current ()
3945 {
4046 return $ this ->items [$ this ->position ];
4147 }
4248
49+ #[\ReturnTypeWillChange]
4350 public function key ()
4451 {
4552 return $ this ->position ;
4653 }
4754
55+ #[\ReturnTypeWillChange]
4856 public function next ()
4957 {
5058 ++$ this ->position ;
5159 }
5260
61+ #[\ReturnTypeWillChange]
5362 public function valid ()
5463 {
5564 return isset ($ this ->items [$ this ->position ]);
You can’t perform that action at this time.
0 commit comments