Releases: brick/money
Releases Β· brick/money
0.10.3
0.10.2
0.10.1
0.10.0
π₯ ISO currency changes
ZWG(Zimbabwe Gold) has been addedZWL(Zimbabwean Dollar) has been removedSLL(Sierra Leonean Leone) has been removed- The currency of Zimbabwe (
ZW) has been changed toZWG(Zimbabwe Gold) - The
SLLcurrency has been removed from Sierra Leone (SL), which only hasSLEnow
0.9.0
π₯ Breaking changes
- Minimum PHP version is now 8.1
PDOProviderConfigurationno longer has getters, its properties arepublic readonlyRoundingModefrombrick/mathis now an enum, so:- all methods accepting an
introunding mode now accept aRoundingModeinstance instead - this should be transparent to your application, as you'll be using the same constants such as
RoundingMode::UP
- all methods accepting an
0.8.1
0.8.0
π₯ Breaking changes
- Minimum PHP version is now 8.0
- Due to Croatia's adoption of the Euro on January 1st, 2023:
- the
HRKcurrency (Kuna) has been removed from the ISO currency provider - the
HRcountry (Croatia) is now mapped toEUR(Euro)
- the
PDOProviderConfigurationnow has a proper constructor, and its properties are no longer publicPDOProviderConfigurationnow throws exceptions in the constructor when configuration is invalid- All documented union types are now strongly typed:
- If you have a custom
ExchangeRateProviderimplementation, you will need to update yourgetExchangeRate()method signature - If you were passing
Stringableobjects toof()or any of the methods internally callingof(), and havestrict_typesenabled, you will need to explicitly cast these objects tostringfirst
- If you have a custom
0.7.1
0.7.0
0.6.0
π₯ Breaking changes
- Minimum PHP version is now 7.4
AbstractMoney::getAmount()now has a return typeCurrencyConverter's constructor does not accept a default$contextanymoreCurrencyConverter::convert()now requires the$contextpreviously 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/mathversion0.10