Skip to content

Commit bf75810

Browse files
authored
add missing return type hint (#22)
1 parent 69a32da commit bf75810

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Result.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use IteratorAggregate;
66
use PhpParser\PrettyPrinter\Standard;
77
use PhpParser\PrettyPrinterAbstract;
8+
use Traversable;
89

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

36-
public function getIterator()
37+
public function getIterator(): Traversable
3738
{
3839
return new ArrayIterator($this->getStubStmts());
3940
}

0 commit comments

Comments
 (0)