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 55use IteratorAggregate ;
66use ArrayIterator ;
77use RuntimeException ;
8+ use Traversable ;
89
910final class ClassNameCandidates implements IteratorAggregate
1011{
@@ -22,7 +23,7 @@ public static function fromClassNames(array $classNames)
2223 return new self ($ classNames );
2324 }
2425
25- public function getIterator ()
26+ public function getIterator (): Traversable
2627 {
2728 return new ArrayIterator (array_values ($ this ->classNames ));
2829 }
Original file line number Diff line number Diff line change 55use IteratorAggregate ;
66use RuntimeException ;
77use ArrayIterator ;
8+ use Traversable ;
89
910final class FilePathCandidates implements IteratorAggregate
1011{
@@ -53,7 +54,7 @@ public function noneFound(): bool
5354 return empty ($ this ->filePaths );
5455 }
5556
56- public function getIterator ()
57+ public function getIterator (): Traversable
5758 {
5859 return new ArrayIterator ($ this ->filePaths );
5960 }
You can’t perform that action at this time.
0 commit comments