From 0dc40e3791c67e8793e3aa13fead8cf4661ec9cd Mon Sep 17 00:00:00 2001 From: Dmitrii <9381904@gmail.com> Date: Wed, 21 Sep 2022 10:43:36 +0300 Subject: [PATCH] * fix deprecation on getIterator (#712) --- src/Currencies/AggregateCurrencies.php | 1 + src/Currencies/BitcoinCurrencies.php | 1 + src/Currencies/CachedCurrencies.php | 1 + src/Currencies/CurrencyList.php | 1 + src/Currencies/ISOCurrencies.php | 1 + 5 files changed, 5 insertions(+) diff --git a/src/Currencies/AggregateCurrencies.php b/src/Currencies/AggregateCurrencies.php index 5a4fc44fb..87f572cb2 100644 --- a/src/Currencies/AggregateCurrencies.php +++ b/src/Currencies/AggregateCurrencies.php @@ -63,6 +63,7 @@ public function subunitFor(Currency $currency) /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function getIterator() { $iterator = new \AppendIterator(); diff --git a/src/Currencies/BitcoinCurrencies.php b/src/Currencies/BitcoinCurrencies.php index 711244687..a174bccf3 100644 --- a/src/Currencies/BitcoinCurrencies.php +++ b/src/Currencies/BitcoinCurrencies.php @@ -38,6 +38,7 @@ public function subunitFor(Currency $currency) /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator([new Currency(self::CODE)]); diff --git a/src/Currencies/CachedCurrencies.php b/src/Currencies/CachedCurrencies.php index a0bdb8180..fed13b57e 100644 --- a/src/Currencies/CachedCurrencies.php +++ b/src/Currencies/CachedCurrencies.php @@ -73,6 +73,7 @@ public function subunitFor(Currency $currency) /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function getIterator() { return new \CallbackFilterIterator( diff --git a/src/Currencies/CurrencyList.php b/src/Currencies/CurrencyList.php index 9fb240514..4bb63a50c 100644 --- a/src/Currencies/CurrencyList.php +++ b/src/Currencies/CurrencyList.php @@ -58,6 +58,7 @@ public function subunitFor(Currency $currency) /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator( diff --git a/src/Currencies/ISOCurrencies.php b/src/Currencies/ISOCurrencies.php index ed16b7b14..8b44b338e 100644 --- a/src/Currencies/ISOCurrencies.php +++ b/src/Currencies/ISOCurrencies.php @@ -59,6 +59,7 @@ public function numericCodeFor(Currency $currency) /** * @return \Traversable */ + #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator(