From 65c0842b1dd24cf111f15180ed5045f88057e0e2 Mon Sep 17 00:00:00 2001 From: Arne Van den Langenbergh Date: Wed, 29 Jun 2022 14:58:16 +0200 Subject: [PATCH 1/2] fix return type --- Model/Data/InlineGenerateStatsCollection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } From 3c7392b30716d01a8c1d292fc497c9993a5eeb92 Mon Sep 17 00:00:00 2001 From: Arne Van den Langenbergh Date: Wed, 29 Jun 2022 15:54:20 +0200 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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