Skip to content

Update brick/money requirement from ^0.10.1 to ^0.11.0#15

Merged
github-actions[bot] merged 1 commit intomainfrom
dependabot/composer/brick/money-tw-0.11.0
Jan 26, 2026
Merged

Update brick/money requirement from ^0.10.1 to ^0.11.0#15
github-actions[bot] merged 1 commit intomainfrom
dependabot/composer/brick/money-tw-0.11.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 26, 2026

Updates the requirements on brick/money to permit the latest version.

Release notes

Sourced from brick/money's releases.

0.11.0

💥 Breaking changes

  • Minimum PHP version is now 8.2
  • The following classes are now final:
    • CurrencyConversionException
    • MoneyMismatchException
    • UnknownCurrencyException
  • CustomContext now validates the step and will throw an exception if an invalid step is given
  • Interface MoneyContainer has been removed (replaced with Monetary)
  • Method AbstractMoney::getAmounts() has been removed (replaced with getMonies())
  • Method MoneyBag::getAmounts() has been removed (replaced with getMonies())
  • CurrencyConverter::convert() and convertToRational() now accept a Monetary instance (which still includes Money, RationalMoney and MoneyBag)
  • MoneyBag::add() and subtract() now accept a Monetary instance (which still includes Money, RationalMoney and MoneyBag)

⚠️ Deprecations

  • Calling Currency::of() with a numeric code is deprecated, use Currency::ofNumericCode() instead
  • Calling ISOCurrencyProvider::getCurrency() with a numeric code is deprecated, use getCurrencyByNumericCode() instead
  • Calling CurrencyConverter::convert() or convertToRational() with a numeric currency code is deprecated, use a Currency instance instead
  • Calling Money::of(), ofMinor(), zero() or convertedTo() with a numeric currency code is deprecated, use a Currency instance instead
  • Calling RationalMoney::of() with a numeric currency code is deprecated, use a Currency instance instead
  • MoneyBag::getAmount() is deprecated, use getMoney() instead
  • Money::formatTo() is deprecated, use Money::formatToLocale() instead
  • Money::formatWith() is deprecated, use MoneyNumberFormatter::format() instead
  • Currency::is() is deprecated, use Currency::isEqualTo() instead

[!IMPORTANT] The convenience of passing a currency by ISO numeric code in addition to alphabetic code has been deprecated, leaving only alphabetic-code lookup in generic APIs. For example, Money::of() will accept Currency|string in the future, instead of Currency|string|int today. This makes explicit the separation between retrieval by alphabetic code, which has strong backwards compatibility guarantees, and retrieval by numeric code, which may change in minor versions due to ISO reassignments. This will require users to explicitly obtain a currency through Currency::ofNumericCode(), which is documented as not being covered by the same BC guarantees.

New features

  • Support for historical currencies in Money::of(), Currency::of(), etc. (#104 by @​survik1)
  • New enum: CurrencyType
  • New methods:
    • Currency::getCurrencyType() returns the type of the currency
    • Currency::ofNumericCode() returns a currency by its numeric ISO 4217 code
    • Currency::isEqualTo() compares two currencies for equality (replaces is())
    • ISOCurrencyProvider::getCurrencyByNumericCode() returns a currency by its numeric code
    • ISOCurrencyProvider::getHistoricalCurrenciesForCountry() returns historical currencies for a country
    • MoneyBag::getMoney() returns the contained amount in a given currency (replaces getAmount())
    • MoneyBag::getMonies() returns the contained monies (replaces getAmounts())
    • Money::formatToLocale() formats the amount to a locale (replaces formatTo()) (#105 by @​mklepaczewski)
    • RationalMoney::zero() returns a zero RationalMoney in a given currency
  • New interfaces:
    • Monetary (replaces MoneyContainer)
    • MoneyFormatter formats a given Money object (#105 by @​mklepaczewski)
  • New classes:

... (truncated)

Changelog

Sourced from brick/money's changelog.

0.11.0 - 2026-01-22

💥 Breaking changes

  • Minimum PHP version is now 8.2
  • The following classes are now final:
    • CurrencyConversionException
    • MoneyMismatchException
    • UnknownCurrencyException
  • CustomContext now validates the step and will throw an exception if an invalid step is given
  • Interface MoneyContainer has been removed (replaced with Monetary)
  • Method AbstractMoney::getAmounts() has been removed (replaced with getMonies())
  • Method MoneyBag::getAmounts() has been removed (replaced with getMonies())
  • CurrencyConverter::convert() and convertToRational() now accept a Monetary instance (which still includes Money, RationalMoney and MoneyBag)
  • MoneyBag::add() and subtract() now accept a Monetary instance (which still includes Money, RationalMoney and MoneyBag)

⚠️ Deprecations

  • Calling Currency::of() with a numeric code is deprecated, use Currency::ofNumericCode() instead
  • Calling ISOCurrencyProvider::getCurrency() with a numeric code is deprecated, use getCurrencyByNumericCode() instead
  • Calling CurrencyConverter::convert() or convertToRational() with a numeric currency code is deprecated, use a Currency instance instead
  • Calling Money::of(), ofMinor(), zero() or convertedTo() with a numeric currency code is deprecated, use a Currency instance instead
  • Calling RationalMoney::of() with a numeric currency code is deprecated, use a Currency instance instead
  • MoneyBag::getAmount() is deprecated, use getMoney() instead
  • Money::formatTo() is deprecated, use Money::formatToLocale() instead
  • Money::formatWith() is deprecated, use MoneyNumberFormatter::format() instead
  • Currency::is() is deprecated, use Currency::isEqualTo() instead

[!IMPORTANT] The convenience of passing a currency by ISO numeric code in addition to alphabetic code has been deprecated, leaving only alphabetic-code lookup in generic APIs. For example, Money::of() will accept Currency|string in the future, instead of Currency|string|int today. This makes explicit the separation between retrieval by alphabetic code, which has strong backwards compatibility guarantees, and retrieval by numeric code, which may change in minor versions due to ISO reassignments. This will require users to explicitly obtain a currency through Currency::ofNumericCode(), which is documented as not being covered by the same BC guarantees.

New features

  • Support for historical currencies in Money::of(), Currency::of(), etc. (#104 by @​survik1)
  • New enum: CurrencyType
  • New methods:
    • Currency::getCurrencyType() returns the type of the currency
    • Currency::ofNumericCode() returns a currency by its numeric ISO 4217 code
    • Currency::isEqualTo() compares two currencies for equality (replaces is())
    • ISOCurrencyProvider::getCurrencyByNumericCode() returns a currency by its numeric code
    • ISOCurrencyProvider::getHistoricalCurrenciesForCountry() returns historical currencies for a country
    • MoneyBag::getMoney() returns the contained amount in a given currency (replaces getAmount())
    • MoneyBag::getMonies() returns the contained monies (replaces getAmounts())
    • Money::formatToLocale() formats the amount to a locale (replaces formatTo()) (#105 by @​mklepaczewski)
    • RationalMoney::zero() returns a zero RationalMoney in a given currency
  • New interfaces:
    • Monetary (replaces MoneyContainer)
    • MoneyFormatter formats a given Money object (#105 by @​mklepaczewski)

... (truncated)

Commits
  • 56ffc5f Prepare for release
  • a9fda39 Recompute data files and fix tests
  • facaced Fix $historicalMinorUnits ordering
  • fde6b7b Update minor units of historical currencies
  • 3f68a5c Fix Psalm issues
  • 0cf235b Make assertion methods static
  • 1187bea Rephrase numeric currency code changes
  • 5a20ea8 Add Currency::isEqualTo(), deprecate is()
  • 53a19ec Add RationalMoney::zero()
  • a56895f Document more deprecations
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [brick/money](https://github.com/brick/money) to permit the latest version.
- [Release notes](https://github.com/brick/money/releases)
- [Changelog](https://github.com/brick/money/blob/master/CHANGELOG.md)
- [Commits](brick/money@0.10.1...0.11.0)

---
updated-dependencies:
- dependency-name: brick/money
  dependency-version: 0.11.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 26, 2026

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@github-actions github-actions bot merged commit a257215 into main Jan 26, 2026
10 checks passed
@dependabot dependabot bot deleted the dependabot/composer/brick/money-tw-0.11.0 branch January 26, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants