Skip to content

build(deps): bump brick/math from 0.18.0 to 1.0.0 - #2651

Open
dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/brick/math-1.0.0
Open

dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/brick/math-1.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 23, 2026

Copy link
Copy Markdown
Contributor

Bumps brick/math from 0.18.0 to 1.0.0.

Release notes

Sourced from brick/math's releases.

1.0.0

First stable release 🎉

No changes from version 0.20.0.

0.20.0

💥 Breaking changes

  • Deprecated exception class UnsupportedPlatformException has been removed, catch PlatformException instead

The following breaking change only affects you if you specifically catch DivisionByZeroException around calls to of() or to any method accepting strings:

  • of() now throws NumberFormatException instead of DivisionByZeroException when the string is a fraction with a denominator of zero, such as '2/0'

New features

  • New methods: parse() and parseNullable() safely parse untrusted input, by restricting the allowed syntax and limiting the number of digits
  • New enum: NumberSyntax lists the syntax features that parse() can accept, with constants for the most common combinations

🐛 Bug fixes

  • of() no longer throws PlatformException on malformed input with many digits, crafted to trigger heavy backtracking in its parser; such input now throws NumberFormatException as documented

👌 Improvements

  • NumberFormatException messages now escape control and non-ASCII characters, and truncate values longer than 40 bytes, instead of copying the raw input into the message

0.19.1

New features

  • New exception class: PlatformException (replaces UnsupportedPlatformException)
  • PlatformException is now thrown when preg_match() fails due to improper PHP configuration
  • PlatformException is now thrown when PHP_INT_SIZE is an unsupported value

🗑️ Deprecations

  • Exception class UnsupportedPlatformException is deprecated; catch PlatformException instead

0.19.0

New features

  • New rounding mode: RoundingMode::HalfOdd
  • New method: RoundingMode::fromNativeRoundingMode() converts from a native PHP RoundingMode enum (PHP 8.4+)
Changelog

Sourced from brick/math's changelog.

1.0.0 - 2026-09-12

First stable release 🎉

No changes from version 0.20.0.

0.20.0 - 2026-08-28

💥 Breaking changes

  • Deprecated exception class UnsupportedPlatformException has been removed, catch PlatformException instead

The following breaking change only affects you if you specifically catch DivisionByZeroException around calls to of() or to any method accepting strings:

  • of() now throws NumberFormatException instead of DivisionByZeroException when the string is a fraction with a denominator of zero, such as '2/0'

New features

  • New methods: parse() and parseNullable() safely parse untrusted input, by restricting the allowed syntax and limiting the number of digits
  • New enum: NumberSyntax lists the syntax features that parse() can accept, with constants for the most common combinations

🐛 Bug fixes

  • of() no longer throws PlatformException on malformed input with many digits, crafted to trigger heavy backtracking in its parser; such input now throws NumberFormatException as documented

👌 Improvements

  • NumberFormatException messages now escape control and non-ASCII characters, and truncate values longer than 40 bytes, instead of copying the raw input into the message

0.19.1 - 2026-08-08

New features

  • New exception class: PlatformException (replaces UnsupportedPlatformException)
  • PlatformException is now thrown when preg_match() fails due to improper PHP configuration
  • PlatformException is now thrown when PHP_INT_SIZE is an unsupported value

🗑️ Deprecations

  • Exception class UnsupportedPlatformException is deprecated; catch PlatformException instead

0.19.0 - 2026-07-30

New features

  • New rounding mode: RoundingMode::HalfOdd
  • New method: RoundingMode::fromNativeRoundingMode() converts from a native PHP RoundingMode enum (PHP 8.4+)
Commits

Dependabot compatibility score

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 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)

Bumps [brick/math](https://github.com/brick/math) from 0.18.0 to 1.0.0.
- [Release notes](https://github.com/brick/math/releases)
- [Changelog](https://github.com/brick/math/blob/main/CHANGELOG.md)
- [Commits](brick/math@0.18.0...1.0.0)

---
updated-dependencies:
- dependency-name: brick/math
  dependency-version: 1.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Sep 23, 2026
@dependabot
dependabot Bot requested a review from norberttech as a code owner September 23, 2026 04:32
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants