File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public function __construct(array $items) {
33
33
*
34
34
* @return string
35
35
*/
36
+ #[\ReturnTypeWillChange]
36
37
public function current () {
37
38
return $ this ->_item ;
38
39
}
@@ -49,6 +50,7 @@ public function peek() {
49
50
/**
50
51
* Move the cursor forward 1 element if it is valid.
51
52
*/
53
+ #[\ReturnTypeWillChange]
52
54
public function next () {
53
55
if ($ this ->valid ()) {
54
56
$ this ->_shift ();
@@ -60,6 +62,7 @@ public function next() {
60
62
*
61
63
* @return int
62
64
*/
65
+ #[\ReturnTypeWillChange]
63
66
public function key () {
64
67
return $ this ->_index ;
65
68
}
@@ -68,6 +71,7 @@ public function key() {
68
71
* Move forward 1 element and, if the method hasn't been called before, reset
69
72
* the cursor's position to 0.
70
73
*/
74
+ #[\ReturnTypeWillChange]
71
75
public function rewind () {
72
76
$ this ->_shift ();
73
77
if ($ this ->_first ) {
@@ -81,6 +85,7 @@ public function rewind() {
81
85
*
82
86
* @return bool
83
87
*/
88
+ #[\ReturnTypeWillChange]
84
89
public function valid () {
85
90
return ($ this ->_index < $ this ->_length );
86
91
}
You can’t perform that action at this time.
0 commit comments