Skip to content

Commit

Permalink
* fix deprecation on getIterator (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-maksimov authored Sep 21, 2022
1 parent acb3924 commit 0dc40e3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Currencies/AggregateCurrencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function subunitFor(Currency $currency)
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
$iterator = new \AppendIterator();
Expand Down
1 change: 1 addition & 0 deletions src/Currencies/BitcoinCurrencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function subunitFor(Currency $currency)
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator([new Currency(self::CODE)]);
Expand Down
1 change: 1 addition & 0 deletions src/Currencies/CachedCurrencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function subunitFor(Currency $currency)
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \CallbackFilterIterator(
Expand Down
1 change: 1 addition & 0 deletions src/Currencies/CurrencyList.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function subunitFor(Currency $currency)
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator(
Expand Down
1 change: 1 addition & 0 deletions src/Currencies/ISOCurrencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function numericCodeFor(Currency $currency)
/**
* @return \Traversable
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator(
Expand Down

0 comments on commit 0dc40e3

Please sign in to comment.