diff --git a/src/Dependency/NodeDependencies.php b/src/Dependency/NodeDependencies.php index b693e5091c..cd75370e7d 100644 --- a/src/Dependency/NodeDependencies.php +++ b/src/Dependency/NodeDependencies.php @@ -2,14 +2,10 @@ namespace PHPStan\Dependency; -use IteratorAggregate; use PHPStan\File\FileHelper; use PHPStan\Reflection\ReflectionWithFilename; -/** - * @implements \IteratorAggregate - */ -class NodeDependencies implements IteratorAggregate +class NodeDependencies { private FileHelper $fileHelper; @@ -34,11 +30,6 @@ public function __construct( $this->exportedNode = $exportedNode; } - public function getIterator(): \Traversable - { - return new \ArrayIterator($this->reflections); - } - /** * @param string $currentFile * @param array $analysedFiles