Skip to content

Bump brick/math from 0.17.1 to 0.18.0#147

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

Bump brick/math from 0.17.1 to 0.18.0#147
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/brick/math-0.18.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps brick/math from 0.17.1 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

0.17.2

New features

  • New methods: BigInteger::nthRoot() and BigDecimal::nthRoot() compute the nth root of a number (#113 by @​Pablo1Gustavo)
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

0.17.2 - 2026-05-25

New features

  • New methods: BigInteger::nthRoot() and BigDecimal::nthRoot() compute the nth root of a number (#113 by @​Pablo1Gustavo)
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 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.17.1 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.1...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 added the dependencies Pull requests that update a dependency file label Jun 17, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants