---
title: "brick/math 0.20.0 Breaking Changes on Packagist | Since.dev"
description: "What each brick/math release removed, renamed or changed: 258 breaking changes in 10 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/brick/math
last_updated: 2026-12-04
---

# brick/math breaking changes

brick/math 0.20.0 (August 28, 2026) is its newest release with breaking changes, 5 of them. The first: Removed Brick\\Math\\Exception\\UnsupportedPlatformException. Every breaking API change we have recorded in brick/math on Packagist: 258 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.0.0`, released September 12, 2026. MIT license. [Source repository](https://github.com/brick/math)

Its 0.14.0 release requires [PHP 8.2](https://since.dev/calendar/php/8.2.md) or later. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [0.10.0](#v-0-10-0) to [0.20.0](#v-0-20-0): 257 breaking changes in 9 versions.

## brick/math 0.20.0 breaking changes

brick/math 0.20.0, released August 28, 2026: 5 breaking changes.

- **Removed** `Brick\Math\Exception\UnsupportedPlatformException`  

Brick\\Math\\Exception\\UnsupportedPlatformException was removed in brick/math 0.20.0 [packagist.org](https://packagist.org/packages/brick/math#0.20.0)
- **Removed** `UnsupportedPlatformException`  

The deprecated UnsupportedPlatformException class is gone. Catch PlatformException instead. [github.com](https://github.com/brick/math/releases/tag/0.20.0)
- **Behavior changed** `NumberFormatException`  

Exception messages escape control and non-ASCII characters and truncate values longer than 40 bytes. Code that matches on the exact message text may need updating. [github.com](https://github.com/brick/math/releases/tag/0.20.0)
- **Behavior changed** `of`  

For a fraction with a zero denominator such as '2/0', of() now throws NumberFormatException instead of DivisionByZeroException. Code that catches DivisionByZeroException around of() or string-accepting methods must catch... [github.com](https://github.com/brick/math/releases/tag/0.20.0)
- **Signature changed** `Brick\Math\Exception\PlatformException`  

Was final class PlatformException extends UnsupportedPlatformException; now final class PlatformException extends RuntimeException implements MathException. [packagist.org](https://packagist.org/packages/brick/math#0.20.0)

## brick/math 0.18.0 breaking changes

brick/math 0.18.0, released June 14, 2026: 2 breaking changes.

- **Behavior changed** `of`  

Input strings ending in a newline now throw NumberFormatException instead of being accepted. Trim such input before calling of(). [github.com](https://github.com/brick/math/releases/tag/0.18.0)
- **Signature changed** `Brick\Math\BigInteger::fromBytes`  

Code that passes named arguments to fromBytes() must use the parameter name $bytes. [packagist.org](https://packagist.org/packages/brick/math#0.18.0)

## brick/math 0.17.0 breaking changes

brick/math 0.17.0, released March 17, 2026: 43 breaking changes.

- **Removed** `Brick\Math\BigDecimal::hasNonZeroFractionalPart`  

The deprecated BigDecimal::hasNonZeroFractionalPart() method has been removed. Use ! $number->getFractionalPart()->isZero() instead. [packagist.org](https://packagist.org/packages/brick/math#0.17.0)
- **Removed** `Brick\Math\Exception\DivisionByZeroException::divisionByZero`  

Brick\\Math\\Exception\\DivisionByZeroException::divisionByZero was removed in brick/math 0.17.0 [packagist.org](https://packagist.org/packages/brick/math#0.17.0)
- **Removed** `Brick\Math\Exception\DivisionByZeroException::reciprocalOfZero`  

Brick\\Math\\Exception\\DivisionByZeroException::reciprocalOfZero was removed in brick/math 0.17.0 [packagist.org](https://packagist.org/packages/brick/math#0.17.0)
- **Removed** `Brick\Math\Exception\DivisionByZeroException::zeroDenominator`  

Brick\\Math\\Exception\\DivisionByZeroException::zeroDenominator was removed in brick/math 0.17.0 [packagist.org](https://packagist.org/packages/brick/math#0.17.0)
- **Removed** `Brick\Math\Exception\DivisionByZeroException::zeroModulus`  

Brick\\Math\\Exception\\DivisionByZeroException::zeroModulus was removed in brick/math 0.17.0 [packagist.org](https://packagist.org/packages/brick/math#0.17.0)
- **Removed** `Brick\Math\Exception\IntegerOverflowException::integerOutOfRange`  

Brick\\Math\\Exception\\IntegerOverflowException::integerOutOfRange was removed in brick/math 0.17.0 [packagist.org](https://packagist.org/packages/brick/math#0.17.0)
- **Removed** `Brick\Math\Exception\InvalidArgumentException::alphabetTooShort`  

Brick\\Math\\Exception\\InvalidArgumentException::alphabetTooShort was removed in brick/math 0.17.0 [packagist.org](https://packagist.org/packages/brick/math#0.17.0)
- **Removed** `Brick\Math\Exception\InvalidArgumentException::baseOutOfRange`  

Brick\\Math\\Exception\\InvalidArgumentException::baseOutOfRange was removed in brick/math 0.17.0 [packagist.org](https://packagist.org/packages/brick/math#0.17.0)
- **Removed** `Brick\Math\Exception\InvalidArgumentException::cannotConvertFloat`  

Brick\\Math\\Exception\\InvalidArgumentException::cannotConvertFloat was removed in brick/math 0.17.0 [packagist.org](https://packagist.org/packages/brick/math#0.17.0)
- **Removed** `Brick\Math\Exception\InvalidArgumentException::duplicateCharsInAlphabet`  

Brick\\Math\\Exception\\InvalidArgumentException::duplicateCharsInAlphabet was removed in brick/math 0.17.0 [packagist.org](https://packagist.org/packages/brick/math#0.17.0)

And 33 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## brick/math 0.16.0 breaking changes

brick/math 0.16.0, released March 6, 2026: 3 breaking changes.

- **Removed** `Brick\Math\BigRational::simplified`  

The deprecated BigRational::simplified() method was removed because it is now a no-op. Stop calling it. [packagist.org](https://packagist.org/packages/brick/math#0.16.0)
- **Behavior changed** `BigInteger.getLowestSetBit`  

BigInteger::getLowestSetBit() now returns null when the number is zero instead of -1. Code that checks for -1 must check for null. [github.com](https://github.com/brick/math/releases/tag/0.16.0)
- **Signature changed** `Brick\Math\BigInteger::getLowestSetBit`  

Was public function getLowestSetBit(): int; now public function getLowestSetBit(): ?int. [packagist.org](https://packagist.org/packages/brick/math#0.16.0)

## brick/math 0.15.0 breaking changes

brick/math 0.15.0, released February 20, 2026: 102 breaking changes.

- **Removed** `Brick\Math\BigDecimal::exactlyDividedBy`  

Use dividedByExact() instead. [packagist.org](https://packagist.org/packages/brick/math#0.15.0)
- **Removed** `Brick\Math\BigDecimal::getFractionalPart`  

The method is gone and is planned to return a BigDecimal with a different meaning in 0.16. [packagist.org](https://packagist.org/packages/brick/math#0.15.0)
- **Removed** `Brick\Math\BigDecimal::getIntegralPart`  

The method is gone and is planned to return BigInteger in 0.16. [packagist.org](https://packagist.org/packages/brick/math#0.15.0)
- **Removed** `Brick\Math\BigDecimal::stripTrailingZeros`  

Use strippedOfTrailingZeros() instead. [packagist.org](https://packagist.org/packages/brick/math#0.15.0)
- **Removed** `Brick\Math\BigInteger::gcdMultiple`  

Use gcdAll() instead. [packagist.org](https://packagist.org/packages/brick/math#0.15.0)
- **Removed** `Brick\Math\BigInteger::testBit`  

Use isBitSet() instead. [packagist.org](https://packagist.org/packages/brick/math#0.15.0)
- **Removed** `Brick\Math\BigRational::nd`  

Use ofFraction() instead. [packagist.org](https://packagist.org/packages/brick/math#0.15.0)
- **Removed** `Brick\Math\BigRational::quotient`  

Use getIntegralPart() instead. [packagist.org](https://packagist.org/packages/brick/math#0.15.0)
- **Removed** `Brick\Math\BigRational::quotientAndRemainder`  

Compute it from the numerator and denominator instead. [packagist.org](https://packagist.org/packages/brick/math#0.15.0)
- **Removed** `Brick\Math\BigRational::remainder`  

Compute the remainder from the numerator and denominator instead. [packagist.org](https://packagist.org/packages/brick/math#0.15.0)

And 92 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## brick/math 0.14.0 breaking changes

brick/math 0.14.0, released August 29, 2025: 12 breaking changes.

- **Removed**  

The package no longer supports PHP versions below 8.2. Users on older PHP must upgrade PHP before updating. [github.com](https://github.com/brick/math/releases/tag/0.14.0)
- **Behavior changed**  

The package's exception classes are final and cannot be extended. Code that subclasses them must stop doing so. [github.com](https://github.com/brick/math/releases/tag/0.14.0)
- **Behavior changed** `BigNumber`  

BigNumber classes are declared readonly, so code that relies on mutating their properties will no longer work. [github.com](https://github.com/brick/math/releases/tag/0.14.0)
- **Signature changed** `Brick\Math\BigDecimal`  

Was final class BigDecimal extends BigNumber; now final readonly class BigDecimal extends BigNumber. [packagist.org](https://packagist.org/packages/brick/math#0.14.0)
- **Signature changed** `Brick\Math\BigInteger`  

Was final class BigInteger extends BigNumber; now final readonly class BigInteger extends BigNumber. [packagist.org](https://packagist.org/packages/brick/math#0.14.0)
- **Signature changed** `Brick\Math\BigNumber`  

Was abstract class BigNumber implements \\JsonSerializable; now abstract readonly class BigNumber implements \\JsonSerializable, \\Stringable. [packagist.org](https://packagist.org/packages/brick/math#0.14.0)
- **Signature changed** `Brick\Math\BigRational`  

Was final class BigRational extends BigNumber; now final readonly class BigRational extends BigNumber. [packagist.org](https://packagist.org/packages/brick/math#0.14.0)
- **Signature changed** `Brick\Math\Exception\DivisionByZeroException`  

Was class DivisionByZeroException extends MathException; now final class DivisionByZeroException extends MathException. [packagist.org](https://packagist.org/packages/brick/math#0.14.0)
- **Signature changed** `Brick\Math\Exception\IntegerOverflowException`  

Was class IntegerOverflowException extends MathException; now final class IntegerOverflowException extends MathException. [packagist.org](https://packagist.org/packages/brick/math#0.14.0)
- **Signature changed** `Brick\Math\Exception\NegativeNumberException`  

Was class NegativeNumberException extends MathException; now final class NegativeNumberException extends MathException. [packagist.org](https://packagist.org/packages/brick/math#0.14.0)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Older versions

4 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### brick/math 0.13.0 breaking changes

brick/math 0.13.0, released March 3, 2025: 2 breaking changes.

- **Behavior changed** `MathException`  

MathException is now a RuntimeException rather than a plain Exception, reverting the 0.11.0 change. Code that catches Exception still works, but code that catches RuntimeException will now also catch MathException. [github.com](https://github.com/brick/math/releases/tag/0.13.0)
- **Signature changed** `Brick\Math\Exception\MathException`  

Was class MathException extends \\Exception; now class MathException extends \\RuntimeException. [packagist.org](https://packagist.org/packages/brick/math#0.13.0)

### brick/math 0.12.0 breaking changes

brick/math 0.12.0, released November 26, 2023: 40 breaking changes.

- **Removed** `BigNumber.Serializable`  

BigNumber classes dropped the Serializable interface and use PHP's new custom object serialization instead. [github.com](https://github.com/brick/math/releases/tag/0.12.0)
- **Configuration changed**  

The package now requires PHP 8.1 or later; upgrade PHP before updating. [github.com](https://github.com/brick/math/releases/tag/0.12.0)

And 38 more in this version.

### brick/math 0.11.0 breaking changes

brick/math 0.11.0, released January 15, 2023: 48 breaking changes.

- **Removed**  

The package now requires PHP 8.0 or later. Users on older PHP versions must upgrade PHP before updating. [github.com](https://github.com/brick/math/releases/tag/0.11.0)
- **Behavior changed** `MathException`  

Code that catches MathException as a RuntimeException will no longer catch it. Catch Exception or MathException directly. [github.com](https://github.com/brick/math/releases/tag/0.11.0)

And 46 more in this version.

### brick/math 0.10.0 breaking changes

brick/math 0.10.0, released June 18, 2022: 1 breaking change.

- **Configuration changed**  

The package now requires PHP 7.4 or later. Code running on older PHP versions must upgrade PHP before using this release. [github.com](https://github.com/brick/math/releases/tag/0.10.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
