File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
use IteratorAggregate ;
6
6
use ArrayIterator ;
7
7
use RuntimeException ;
8
+ use Traversable ;
8
9
9
10
final class ClassNameCandidates implements IteratorAggregate
10
11
{
@@ -22,7 +23,7 @@ public static function fromClassNames(array $classNames)
22
23
return new self ($ classNames );
23
24
}
24
25
25
- public function getIterator ()
26
+ public function getIterator (): Traversable
26
27
{
27
28
return new ArrayIterator (array_values ($ this ->classNames ));
28
29
}
Original file line number Diff line number Diff line change 5
5
use IteratorAggregate ;
6
6
use RuntimeException ;
7
7
use ArrayIterator ;
8
+ use Traversable ;
8
9
9
10
final class FilePathCandidates implements IteratorAggregate
10
11
{
@@ -53,7 +54,7 @@ public function noneFound(): bool
53
54
return empty ($ this ->filePaths );
54
55
}
55
56
56
- public function getIterator ()
57
+ public function getIterator (): Traversable
57
58
{
58
59
return new ArrayIterator ($ this ->filePaths );
59
60
}
You can’t perform that action at this time.
0 commit comments