Brick\Money v0.7.0 Release Notes
Release Date: 2022-10-06 // over 1 year 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