diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e324a3..2161318 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,3 +17,7 @@ - PHP 8.1 compatibility ### Removed - PHP 8.0 compatibility + +## [1.2.1] - 2022-06-29 +### Bugfix +- Fix return type \ No newline at end of file diff --git a/Model/Data/InlineGenerateStatsCollection.php b/Model/Data/InlineGenerateStatsCollection.php index 18dd364..a721d41 100644 --- a/Model/Data/InlineGenerateStatsCollection.php +++ b/Model/Data/InlineGenerateStatsCollection.php @@ -6,6 +6,7 @@ use ArrayIterator; use Countable; use IteratorAggregate; +use Traversable; class InlineGenerateStatsCollection implements IteratorAggregate, Countable { @@ -30,7 +31,7 @@ public function add(InlineGenerateStats $stats) /** * @return ArrayIterator|InlineGenerateStats[] */ - public function getIterator() + public function getIterator(): Traversable { return new ArrayIterator($this->statsItems); }