File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function __construct(callable $next)
35
35
/**
36
36
* @inheritdoc
37
37
*/
38
- public function getIterator ()
38
+ public function getIterator (): \ Traversable
39
39
{
40
40
$ tail = $ this ;
41
41
do {
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ public function tail(): Listt
127
127
/**
128
128
* @inheritdoc
129
129
*/
130
- public function getIterator ()
130
+ public function getIterator (): \ Traversable
131
131
{
132
132
return new \ArrayObject ();
133
133
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class SnapshotIterator extends \IteratorIterator
10
10
private $ inMemoryCurrent ;
11
11
private $ inSnapshot ;
12
12
13
- public function valid ()
13
+ public function valid (): bool
14
14
{
15
15
if (null === $ this ->inMemoryValid ) {
16
16
$ this ->inMemoryValid = parent ::valid ();
@@ -19,7 +19,7 @@ public function valid()
19
19
return $ this ->inMemoryValid ;
20
20
}
21
21
22
- public function current ()
22
+ public function current (): mixed
23
23
{
24
24
if (null === $ this ->inMemoryCurrent ) {
25
25
$ this ->inMemoryCurrent = parent ::current ();
You can’t perform that action at this time.
0 commit comments