Skip to content

Commit f76875a

Browse files
committed
[BCB] NodeDependencies no longer iterable
1 parent 4588e73 commit f76875a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Dependency/NodeDependencies.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
namespace PHPStan\Dependency;
44

5-
use IteratorAggregate;
65
use PHPStan\File\FileHelper;
76
use PHPStan\Reflection\ReflectionWithFilename;
87

9-
/**
10-
* @implements \IteratorAggregate<int, ReflectionWithFilename>
11-
*/
12-
class NodeDependencies implements IteratorAggregate
8+
class NodeDependencies
139
{
1410

1511
private FileHelper $fileHelper;
@@ -34,11 +30,6 @@ public function __construct(
3430
$this->exportedNode = $exportedNode;
3531
}
3632

37-
public function getIterator(): \Traversable
38-
{
39-
return new \ArrayIterator($this->reflections);
40-
}
41-
4233
/**
4334
* @param string $currentFile
4435
* @param array<string, true> $analysedFiles

0 commit comments

Comments
 (0)