Skip to content

Commit

Permalink
Added Directory->getIterator() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and sebastianbergmann committed Dec 16, 2024
1 parent cdb5bd2 commit fd75e48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Node/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public function count(): int
return $this->numFiles;
}

/**
* @return RecursiveIteratorIterator<Iterator<AbstractNode>>
*/
public function getIterator(): RecursiveIteratorIterator
{
return new RecursiveIteratorIterator(
Expand Down

0 comments on commit fd75e48

Please sign in to comment.