Brick\Money v0.7.0 Release Notes
Release Date: 2022-10-06 // about 2 years ago-
๐ฅ ๐ฅ Breaking changes
- JSON extension is now required for PHP 7.4 (always available with PHP >= 8.0)
- ๐
AbstractMoney
is now officially sealed, extending it yourself is not supported
๐ โจ New features
Money
andRationalMoney
now implementJsonSerializable
Previous changes from v0.6.0
-
๐ฅ ๐ฅ Breaking changes
- Minimum PHP version is now 7.4
AbstractMoney::getAmount()
now has a return type- 0๏ธโฃ
CurrencyConverter
's constructor does not accept a default$context
anymore CurrencyConverter::convert()
now requires the$context
previously accepted by the constructor as third parameterMoney::allocateWithRemainder()
now refuses to allocate a portion of the amount that cannot be spread over all ratios, and instead adds that amount to the remainder (#55)Money::splitWithRemainder()
now behaves likeallocateWithRemainder()
๐ โจ New ISO currencies
SLE
(Leone) in Sierra Leone (SL
)
๐ ๐ Improvements
- Compatibility with
brick/math
version0.10