Skip to content

Commit 4698ecb

Browse files
committed
Add return type, fixes #33
1 parent a80d8b0 commit 4698ecb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Structures/Mergeable.php

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

910
class Mergeable implements Countable, IteratorAggregate
1011
{
@@ -83,7 +84,7 @@ public function count(): int
8384
*
8485
* @return ArrayIterator
8586
*/
86-
public function getIterator()
87+
public function getIterator(): Traversable
8788
{
8889
return new ArrayIterator($this); // @phpstan-ignore-line
8990
}

0 commit comments

Comments
 (0)