Skip to content

build(deps): bump brick/math from 0.17.2 to 0.18.0#2494

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

build(deps): bump brick/math from 0.17.2 to 0.18.0#2494
dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/brick/math-0.18.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 30, 2026

Copy link
Copy Markdown
Contributor

Bumps brick/math from 0.17.2 to 0.18.0.

Release notes

Sourced from brick/math's releases.

0.18.0

💥 Breaking changes

The following breaking change only affects you if you're using named arguments:

  • BigInteger::fromBytes() now uses $bytes as the parameter name

🐛 Bug fixes

  • of() no longer accepts a trailing newline (\n) in the input string; such input now throws NumberFormatException
  • of() now consistently throws NumberFormatException for exponents too large to process, instead of IntegerOverflowException in some cases
  • BigInteger::fromBase() now reports the invalid character with its original case in the NumberFormatException message, instead of lower-casing it

⚡️ Performance improvements

  • BigInteger::gcd() no longer exhausts memory on large inputs when the GMP extension is not installed
  • BigInteger::modInverse() no longer exhausts memory on large inputs, and is faster when the GMP extension is not installed

👌 Static analysis improvements

  • Narrowed parameter and return types with static analysis annotations:
    • nthRoot()'s $n is now positive-int
    • BigInteger::toBase(), toArbitraryBase(), toBytes() and BigRational::toRepeatingDecimalString() now return non-empty-string
Changelog

Sourced from brick/math's changelog.

0.18.0 - 2026-06-14

💥 Breaking changes

The following breaking change only affects you if you're using named arguments:

  • BigInteger::fromBytes() now uses $bytes as the parameter name

🐛 Bug fixes

  • of() no longer accepts a trailing newline (\n) in the input string; such input now throws NumberFormatException
  • of() now consistently throws NumberFormatException for exponents too large to process, instead of IntegerOverflowException in some cases
  • BigInteger::fromBase() now reports the invalid character with its original case in the NumberFormatException message, instead of lower-casing it

⚡️ Performance improvements

  • BigInteger::gcd() no longer exhausts memory on large inputs when the GMP extension is not installed
  • BigInteger::modInverse() no longer exhausts memory on large inputs, and is faster when the GMP extension is not installed

👌 Static analysis improvements

  • Narrowed parameter and return types with static analysis annotations:
    • nthRoot()'s $n is now positive-int
    • BigInteger::toBase(), toArbitraryBase(), toBytes() and BigRational::toRepeatingDecimalString() now return non-empty-string
Commits
  • 8294432 Update CHANGELOG
  • 714ba90 Prepare for release
  • f3d7fce Drop unused second coefficient from gcdExtended()
  • 495a951 Clean up unnecessary else
  • 913bb1f Add missing test for ceab2e3c
  • 94fcdc6 Prevent recursion in Calculator::gcd()
  • 3a8edb7 Add missing param documentation
  • f10bf08 Restrict return types to non-empty-string
  • 7d1678e Fix character case in BigInteger::fromBase() exception message
  • ef94abb Update phpunit.xml schema URL to 11.5
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Jun 30, 2026
@dependabot dependabot Bot requested a review from norberttech as a code owner June 30, 2026 04:33
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Jun 30, 2026
@datadog-official

datadog-official Bot commented Jun 30, 2026

Copy link
Copy Markdown

Pipelines

⚠️ Warnings

🚦 1 Pipeline job failed

Test Suite | static-analyze / static-analyze (locked, 8.3, ubuntu-latest)   View in Datadog   GitHub Actions

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 0c8fd46 | Docs | Give us feedback!

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

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/composer/brick/math-0.18.0 branch from aa3cdc5 to 0c8fd46 Compare July 2, 2026 09:04
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