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 and RationalMoney now implement JsonSerializable

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 parameter
    • Money::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 like allocateWithRemainder()

    ๐Ÿ†• โœจ New ISO currencies

    • SLE (Leone) in Sierra Leone (SL)

    ๐Ÿ‘Œ ๐Ÿ‘Œ Improvements

    • Compatibility with brick/math version 0.10