Skip to content

Bump brick/math from 0.12.3 to 0.17.1#125

Merged
otherguy merged 2 commits intomainfrom
dependabot/composer/brick/math-0.17.1
Apr 27, 2026
Merged

Bump brick/math from 0.12.3 to 0.17.1#125
otherguy merged 2 commits intomainfrom
dependabot/composer/brick/math-0.17.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 27, 2026

Bumps brick/math from 0.12.3 to 0.17.1.

Release notes

Sourced from brick/math's releases.

0.17.1

👌 Improvements

  • More precise float approximations in BigRational::toFloat()

0.17.0

💥 Breaking changes

  • Deprecated method BigDecimal::hasNonZeroFractionalPart() has been removed, use ! $number->getFractionalPart()->isZero() instead
  • Exception constructors and factory methods are now @internal

Compatibility improvements

  • BigDecimal::fromFloatExact() now supports 32-bit PHP

0.16.2

New features

New methods to create a BigDecimal from a float value:

  • BigDecimal::fromFloatExact()
  • BigDecimal::fromFloatShortest()

0.16.1

👌 Improvements

  • Add @return non-empty-string to toString(), jsonSerialize() and __toString() (#111 by @​vudaltsov)

0.16.0

💥 Breaking changes

  • BigInteger::getLowestSetBit() now returns null instead of -1 when the number is zero
  • Deprecated method BigRational::simplified() has been removed, as it is now a no-op

New features

  • New method: BigDecimal::getIntegralPart() returns the integral part as BigInteger (this method existed with a different signature in version 0.14, and was removed in 0.15)
  • New method: BigDecimal::getFractionalPart() returns the fractional part as BigDecimal (this method existed with a different signature and meaning in version 0.14, and was removed in 0.15)

🗑️ Deprecations

  • Method BigDecimal::hasNonZeroFractionalPart() is deprecated, use ->getFractionalPart()->isZero() instead

0.15.0

💥 Breaking changes

  • floating-point inputs are no longer accepted by of() and arithmetic methods, use of((string) $float) to get the same behaviour as before (#105)
  • BigRational is now always simplified to lowest terms: all operations, including of() and ofFraction(), now return a fraction in its simplest form (e.g. 2/3 instead of 4/6)
  • BigDecimal::dividedBy() now requires the $scale parameter
  • BigInteger::sqrt() and BigDecimal::sqrt() now default to RoundingMode::Unnecessary, explicitly pass RoundingMode::Down to get the previous behaviour

... (truncated)

Changelog

Sourced from brick/math's changelog.

0.17.1 - 2026-04-19

👌 Improvements

  • More precise float approximations in BigRational::toFloat()

0.17.0 - 2026-03-17

💥 Breaking changes

  • Deprecated method BigDecimal::hasNonZeroFractionalPart() has been removed, use ! $number->getFractionalPart()->isZero() instead
  • Exception constructors and factory methods are now @internal

Compatibility improvements

  • BigDecimal::fromFloatExact() now supports 32-bit PHP

0.16.2 - 2026-03-15

New features

New methods to create a BigDecimal from a float value:

  • BigDecimal::fromFloatExact()
  • BigDecimal::fromFloatShortest()

0.16.1 - 2026-03-09

👌 Improvements

  • Add @return non-empty-string to toString(), jsonSerialize() and __toString() (#111 by @​vudaltsov)

0.16.0 - 2026-03-06

💥 Breaking changes

  • BigInteger::getLowestSetBit() now returns null instead of -1 when the number is zero
  • Deprecated method BigRational::simplified() has been removed, as it is now a no-op

New features

  • New method: BigDecimal::getIntegralPart() returns the integral part as BigInteger (this method existed with a different signature in version 0.14, and was removed in 0.15)
  • New method: BigDecimal::getFractionalPart() returns the fractional part as BigDecimal (this method existed with a different signature and meaning in version 0.14, and was removed in 0.15)

🗑️ Deprecations

  • Method BigDecimal::hasNonZeroFractionalPart() is deprecated, use ->getFractionalPart()->isZero() instead

0.15.0 - 2026-02-20

... (truncated)

Commits
  • 6aef71a Add missing changelog title
  • 2b562c4 Prepare for release
  • 391597d Better BigRational::toFloat() approximations
  • a62af7a Prepare for release
  • 4df1e12 Use expectExceptionMessageExact() in tests
  • 2f96653 Test for null in ofNullable() tests
  • 265e4bd Wrap int operations in int-safe functions
  • aa50c1b Add non-negative-int return type to __unserialize()
  • e9ab671 Make codecov informational
  • 38b3e07 Support 32-bit PHP in fromFloatExact()
  • 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.12.3 to 0.17.1.
- [Release notes](https://github.com/brick/math/releases)
- [Changelog](https://github.com/brick/math/blob/main/CHANGELOG.md)
- [Commits](brick/math@0.12.3...0.17.1)

---
updated-dependencies:
- dependency-name: brick/math
  dependency-version: 0.17.1
  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 Apr 27, 2026
@otherguy otherguy merged commit 95e9ede into main Apr 27, 2026
6 checks passed
@otherguy otherguy deleted the dependabot/composer/brick/math-0.17.1 branch April 27, 2026 13:33
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.

1 participant