Skip to content

Commit

Permalink
[BCB] NodeDependencies no longer iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 12, 2021
1 parent 4588e73 commit f76875a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/Dependency/NodeDependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@

namespace PHPStan\Dependency;

use IteratorAggregate;
use PHPStan\File\FileHelper;
use PHPStan\Reflection\ReflectionWithFilename;

/**
* @implements \IteratorAggregate<int, ReflectionWithFilename>
*/
class NodeDependencies implements IteratorAggregate
class NodeDependencies
{

private FileHelper $fileHelper;
Expand All @@ -34,11 +30,6 @@ public function __construct(
$this->exportedNode = $exportedNode;
}

public function getIterator(): \Traversable
{
return new \ArrayIterator($this->reflections);
}

/**
* @param string $currentFile
* @param array<string, true> $analysedFiles
Expand Down

0 comments on commit f76875a

Please sign in to comment.