Skip to content

Commit d0664ba

Browse files
committed
fix: incompatible methods
1 parent 3b5c57f commit d0664ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Model/Collection/ArrayCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function count(): int
3939
return $this->count;
4040
}
4141

42-
public function getIterator()
42+
public function getIterator(): \Traversable
4343
{
4444
return new ArrayIterator($this->getItems());
4545
}

src/Model/Collection/UniqueResourceCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getResources(): array
5656
return $this->items;
5757
}
5858

59-
public function getIterator()
59+
public function getIterator(): \Traversable
6060
{
6161
return new ArrayIterator($this->items);
6262
}

0 commit comments

Comments
 (0)