moneyphp / money

PHP implementation of Fowler's Money pattern.
http://moneyphp.org
MIT License
4.57k stars 440 forks source link

Deprecated: Return type of Money\Currencies\ISOCurrencies::getIterator() should either be compatible with IteratorAggregate::getIterator() #692

Closed seyfcom closed 2 years ago

seyfcom commented 2 years ago

Hi I got this error, any idea? Thanks

Deprecated: Return type of Money\Currencies\ISOCurrencies::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in S:\wamp64\www\Camt_Converter\vendor\moneyphp\money\src\Currencies\ISOCurrencies.php on line 64

Deprecated: Return type of Money\Currency::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in S:\wamp64\www\Camt_Converter\vendor\moneyphp\money\src\Currency.php on line 86

Deprecated: Return type of Money\Money::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in S:\wamp64\www\Camt_Converter\vendor\moneyphp\money\src\Money.php on line 521

PHP 8.0.1 Laragon install on Windows 10

frederikbosch commented 2 years ago

See v4.0.4.