Skip to content

Commit

Permalink
Add IteratorAggregate type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
neildaniels committed Dec 9, 2021
1 parent 783c623 commit cb8a423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Common/GenericCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function count()
/**
* @return ArrayIterator|Traversable
*/
public function getIterator()
public function getIterator(): Traversable
{
return new ArrayIterator($this->data);
}
Expand Down

0 comments on commit cb8a423

Please sign in to comment.