Skip to content

Commit

Permalink
add missing return type hint (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
criskell authored Jul 24, 2023
1 parent 69a32da commit bf75810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use IteratorAggregate;
use PhpParser\PrettyPrinter\Standard;
use PhpParser\PrettyPrinterAbstract;
use Traversable;

/**
* Contains the results of stub generation, including the stubs themselves as
Expand Down Expand Up @@ -33,7 +34,7 @@ public function __construct(NodeVisitor $visitor, array $unparsed)
$this->unparsed = $unparsed;
}

public function getIterator()
public function getIterator(): Traversable
{
return new ArrayIterator($this->getStubStmts());
}
Expand Down

0 comments on commit bf75810

Please sign in to comment.