cknow / laravel-money

Laravel Money.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP 8.1 Support

neoighodaro opened this issue · comments

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 86PHP 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 64PHP 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 65PHP 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 66PHP 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```
commented

Update: you can follow this here moneyphp/money#670