Skip to content

Commit d65e4fd

Browse files
committed
Fix 8.0 deps
1 parent b573d8a commit d65e4fd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/Domain/ClassNameCandidates.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use IteratorAggregate;
66
use ArrayIterator;
77
use RuntimeException;
8+
use Traversable;
89

910
final 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
}

lib/Domain/FilePathCandidates.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use IteratorAggregate;
66
use RuntimeException;
77
use ArrayIterator;
8+
use Traversable;
89

910
final 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
}

0 commit comments

Comments
 (0)