File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function getCurrentIndex()
25
25
return $ this ->current ;
26
26
}
27
27
28
- public function current ()
28
+ public function current () : mixed
29
29
{
30
30
if ($ this ->endOfItem ) {
31
31
throw new RangeException ('End of buffer ' );
@@ -39,12 +39,12 @@ public function current()
39
39
return $ pos ;
40
40
}
41
41
42
- public function key ()
42
+ public function key () : mixed
43
43
{
44
44
return null ;
45
45
}
46
46
47
- public function next ()
47
+ public function next () : void
48
48
{
49
49
if ($ this ->endOfItem )
50
50
return ;
@@ -61,13 +61,13 @@ public function next()
61
61
$ this ->endOfItem = true ;
62
62
}
63
63
64
- public function rewind ()
64
+ public function rewind () : void
65
65
{
66
66
$ this ->current = array_fill (0 ,count ($ this ->shape ),0 );
67
67
$ this ->endOfItem = false ;
68
68
}
69
69
70
- public function valid ()
70
+ public function valid () : bool
71
71
{
72
72
if ($ this ->endOfItem )
73
73
return false ;
You can’t perform that action at this time.
0 commit comments