brick/math breaking changes
Updated December 4, 2026
On this page
Latest version 1.0.0, released September 12, 2026. MIT license. Source repository
Its 0.14.0 release requires PHP 8.2 or later. PHP end of life dates.
brick/math 0.20.0 breaking changes
- Removed
Brick\Math\Exception\UnsupportedPlatformException
Brick\Math\Exception\UnsupportedPlatformException was removed in brick/math 0.20.0 packagist.org - Removed
UnsupportedPlatformException
The deprecated UnsupportedPlatformException class is gone. Catch PlatformException instead. github.com - 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 - 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 - Signature changed
Brick\Math\Exception\PlatformException
Was final class PlatformException extends UnsupportedPlatformException; now final class PlatformException extends RuntimeException implements MathException. packagist.org
brick/math 0.18.0 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 - Signature changed
Brick\Math\BigInteger::fromBytes
Code that passes named arguments to fromBytes() must use the parameter name $bytes. packagist.org
brick/math 0.17.0 breaking changes
- Removed
Brick\Math\BigDecimal::hasNonZeroFractionalPart
The deprecated BigDecimal::hasNonZeroFractionalPart() method has been removed. Use ! $number->getFractionalPart()->isZero() instead. packagist.org - Removed
Brick\Math\Exception\DivisionByZeroException::divisionByZero
Brick\Math\Exception\DivisionByZeroException::divisionByZero was removed in brick/math 0.17.0 packagist.org - Removed
Brick\Math\Exception\DivisionByZeroException::reciprocalOfZero
Brick\Math\Exception\DivisionByZeroException::reciprocalOfZero was removed in brick/math 0.17.0 packagist.org - Removed
Brick\Math\Exception\DivisionByZeroException::zeroDenominator
Brick\Math\Exception\DivisionByZeroException::zeroDenominator was removed in brick/math 0.17.0 packagist.org - Removed
Brick\Math\Exception\DivisionByZeroException::zeroModulus
Brick\Math\Exception\DivisionByZeroException::zeroModulus was removed in brick/math 0.17.0 packagist.org - Removed
Brick\Math\Exception\IntegerOverflowException::integerOutOfRange
Brick\Math\Exception\IntegerOverflowException::integerOutOfRange was removed in brick/math 0.17.0 packagist.org - Removed
Brick\Math\Exception\InvalidArgumentException::alphabetTooShort
Brick\Math\Exception\InvalidArgumentException::alphabetTooShort was removed in brick/math 0.17.0 packagist.org - Removed
Brick\Math\Exception\InvalidArgumentException::baseOutOfRange
Brick\Math\Exception\InvalidArgumentException::baseOutOfRange was removed in brick/math 0.17.0 packagist.org - Removed
Brick\Math\Exception\InvalidArgumentException::cannotConvertFloat
Brick\Math\Exception\InvalidArgumentException::cannotConvertFloat was removed in brick/math 0.17.0 packagist.org - Removed
Brick\Math\Exception\InvalidArgumentException::duplicateCharsInAlphabet
Brick\Math\Exception\InvalidArgumentException::duplicateCharsInAlphabet was removed in brick/math 0.17.0 packagist.org
And 33 more in this version. Sign up to see every change
brick/math 0.16.0 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 - 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 - Signature changed
Brick\Math\BigInteger::getLowestSetBit
Was public function getLowestSetBit(): int; now public function getLowestSetBit(): ?int. packagist.org
brick/math 0.15.0 breaking changes
- Removed
Brick\Math\BigDecimal::exactlyDividedBy
Use dividedByExact() instead. packagist.org - 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 - Removed
Brick\Math\BigDecimal::getIntegralPart
The method is gone and is planned to return BigInteger in 0.16. packagist.org - Removed
Brick\Math\BigDecimal::stripTrailingZeros
Use strippedOfTrailingZeros() instead. packagist.org - Removed
Brick\Math\BigInteger::gcdMultiple
Use gcdAll() instead. packagist.org - Removed
Brick\Math\BigInteger::testBit
Use isBitSet() instead. packagist.org - Removed
Brick\Math\BigRational::nd
Use ofFraction() instead. packagist.org - Removed
Brick\Math\BigRational::quotient
Use getIntegralPart() instead. packagist.org - Removed
Brick\Math\BigRational::quotientAndRemainder
Compute it from the numerator and denominator instead. packagist.org - Removed
Brick\Math\BigRational::remainder
Compute the remainder from the numerator and denominator instead. packagist.org
And 92 more in this version. Sign up to see every change
brick/math 0.14.0 breaking changes
- Removed
The package no longer supports PHP versions below 8.2. Users on older PHP must upgrade PHP before updating. github.com - Behavior changed
The package's exception classes are final and cannot be extended. Code that subclasses them must stop doing so. github.com - Behavior changed
BigNumber
BigNumber classes are declared readonly, so code that relies on mutating their properties will no longer work. github.com - Signature changed
Brick\Math\BigDecimal
Was final class BigDecimal extends BigNumber; now final readonly class BigDecimal extends BigNumber. packagist.org - Signature changed
Brick\Math\BigInteger
Was final class BigInteger extends BigNumber; now final readonly class BigInteger extends BigNumber. packagist.org - Signature changed
Brick\Math\BigNumber
Was abstract class BigNumber implements \JsonSerializable; now abstract readonly class BigNumber implements \JsonSerializable, \Stringable. packagist.org - Signature changed
Brick\Math\BigRational
Was final class BigRational extends BigNumber; now final readonly class BigRational extends BigNumber. packagist.org - Signature changed
Brick\Math\Exception\DivisionByZeroException
Was class DivisionByZeroException extends MathException; now final class DivisionByZeroException extends MathException. packagist.org - Signature changed
Brick\Math\Exception\IntegerOverflowException
Was class IntegerOverflowException extends MathException; now final class IntegerOverflowException extends MathException. packagist.org - Signature changed
Brick\Math\Exception\NegativeNumberException
Was class NegativeNumberException extends MathException; now final class NegativeNumberException extends MathException. packagist.org
And 2 more in this version. Sign up to see every change
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
brick/math 0.13.0 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 - Signature changed
Brick\Math\Exception\MathException
Was class MathException extends \Exception; now class MathException extends \RuntimeException. packagist.org
brick/math 0.12.0 breaking changes
- Removed
BigNumber.Serializable
BigNumber classes dropped the Serializable interface and use PHP's new custom object serialization instead. github.com - Configuration changed
The package now requires PHP 8.1 or later; upgrade PHP before updating. github.com
And 38 more in this version.
brick/math 0.11.0 breaking changes
- Removed
The package now requires PHP 8.0 or later. Users on older PHP versions must upgrade PHP before updating. github.com - Behavior changed
MathException
Code that catches MathException as a RuntimeException will no longer catch it. Catch Exception or MathException directly. github.com
And 46 more in this version.
brick/math 0.10.0 breaking changes
- 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
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.