Skip to content

Commit

Permalink
Merge pull request #4 from vacla/bugfix/fix-return-type
Browse files Browse the repository at this point in the history
Bugfix/fix return type
  • Loading branch information
BrentRobert authored Jul 1, 2022
2 parents cf042d9 + 3c7392b commit dad90da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
- PHP 8.1 compatibility
### Removed
- PHP 8.0 compatibility

## [1.2.1] - 2022-06-29
### Bugfix
- Fix return type
3 changes: 2 additions & 1 deletion Model/Data/InlineGenerateStatsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use ArrayIterator;
use Countable;
use IteratorAggregate;
use Traversable;

class InlineGenerateStatsCollection implements IteratorAggregate, Countable
{
Expand All @@ -30,7 +31,7 @@ public function add(InlineGenerateStats $stats)
/**
* @return ArrayIterator|InlineGenerateStats[]
*/
public function getIterator()
public function getIterator(): Traversable
{
return new ArrayIterator($this->statsItems);
}
Expand Down

0 comments on commit dad90da

Please sign in to comment.