PHP 8.1 Support
neoighodaro opened this issue · comments
Neo commented
Currently when using this package in a PHP 8.1 project you get the following deprecation notices, maybe you need to update to the latest version of the dependency MoneyPHP:
PHP 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 /var/www/html/vendor/moneyphp/money/src/Currency.php on line 86�
PHP 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 /var/www/html/vendor/moneyphp/money/src/Currencies/ISOCurrencies.php on line 64�
PHP Deprecated: Return type of Money\Currencies\CurrencyList::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/moneyphp/money/src/Currencies/CurrencyList.php on line 65�
PHP Deprecated: Return type of Money\Currencies\AggregateCurrencies::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/moneyphp/money/src/Currencies/AggregateCurrencies.php on line 66�
PHP 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 /var/www/html/vendor/moneyphp/money/src/Money.php on line 521```
Neo commented
Update: you can follow this here moneyphp/money#670