webmozart/assert breaking changes
webmozart/assert 2.0.0 (December 16, 2025) is its newest release with breaking changes, 648 of them. The first: Removed Webmozart\Assert\Assert::__callStatic. Every breaking API change we have recorded in webmozart/assert on Packagist: 648 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.5.1, released November 15, 2026. MIT license. Source repository
Packages on Packagist run on PHP. PHP end of life dates.
webmozart/assert 2.0.0 breaking changes
- Removed
Webmozart\Assert\Assert::__callStatic
Webmozart\Assert\Assert::__callStatic was removed in webmozart/assert 2.0.0 packagist.org - Removed
Webmozart\Assert\Assert::allIsTraversable
Use isIterable instead. packagist.org - Removed
Webmozart\Assert\Assert::allNullOrIsTraversable
Use isIterable instead. packagist.org - Removed
Webmozart\Assert\Assert::isTraversable
Use isIterable instead. packagist.org - Removed
Webmozart\Assert\Assert::nullOrIsTraversable
Use isIterable instead. packagist.org - Removed
Webmozart\Assert\Mixin::allIsTraversable
Webmozart\Assert\Mixin::allIsTraversable was removed in webmozart/assert 2.0.0 packagist.org - Removed
Webmozart\Assert\Mixin::allNullOrIsTraversable
Webmozart\Assert\Mixin::allNullOrIsTraversable was removed in webmozart/assert 2.0.0 packagist.org - Removed
Webmozart\Assert\Mixin::nullOrIsTraversable
Webmozart\Assert\Mixin::nullOrIsTraversable was removed in webmozart/assert 2.0.0 packagist.org - Signature changed
Webmozart\Assert\Assert::allAlnum
Was public static function allAlnum($value, $message = ''); now public static function allAlnum(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allAlpha
Was public static function allAlpha($value, $message = ''); now public static function allAlpha(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allBoolean
Was public static function allBoolean($value, $message = ''); now public static function allBoolean(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allClassExists
Was public static function allClassExists($value, $message = ''); now public static function allClassExists(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allContains
Was public static function allContains($value, $subString, $message = ''); now public static function allContains(iterable $value, mixed $subString, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allCount
Was public static function allCount($array, $number, $message = ''); now public static function allCount(mixed $array, mixed $number, string $message = ''): mixed. packagist.org - Signature changed
Webmozart\Assert\Assert::allCountBetween
Was public static function allCountBetween($array, $min, $max, $message = ''); now public static function allCountBetween(mixed $array, mixed $min, mixed $max, string $message = ''): mixed. packagist.org - Signature changed
Webmozart\Assert\Assert::allDigits
Was public static function allDigits($value, $message = ''); now public static function allDigits(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allDirectory
Was public static function allDirectory($value, $message = ''); now public static function allDirectory(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allEmail
Was public static function allEmail($value, $message = ''); now public static function allEmail(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allEndsWith
Was public static function allEndsWith($value, $suffix, $message = ''); now public static function allEndsWith(iterable $value, mixed $suffix, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allEq
Was public static function allEq($value, $expect, $message = ''); now public static function allEq(iterable $value, mixed $expect, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allFalse
Was public static function allFalse($value, $message = ''); now public static function allFalse(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allFile
Was public static function allFile($value, $message = ''); now public static function allFile(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allFileExists
Was public static function allFileExists($value, $message = ''); now public static function allFileExists(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allFloat
Was public static function allFloat($value, $message = ''); now public static function allFloat(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allGreaterThan
Was public static function allGreaterThan($value, $limit, $message = ''); now public static function allGreaterThan(iterable $value, mixed $limit, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allGreaterThanEq
Was public static function allGreaterThanEq($value, $limit, $message = ''); now public static function allGreaterThanEq(iterable $value, mixed $limit, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allImplementsInterface
Was public static function allImplementsInterface($value, $interface, $message = ''); now public static function allImplementsInterface(iterable $value, mixed $interface, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allInArray
Was public static function allInArray($value, $values, $message = ''); now public static function allInArray(iterable $value, mixed $values, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allInteger
Was public static function allInteger($value, $message = ''); now public static function allInteger(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIntegerish
Was public static function allIntegerish($value, $message = ''); now public static function allIntegerish(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allInterfaceExists
Was public static function allInterfaceExists($value, $message = ''); now public static function allInterfaceExists(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIp
Was public static function allIp($value, $message = ''); now public static function allIp(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIpv4
Was public static function allIpv4($value, $message = ''); now public static function allIpv4(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIpv6
Was public static function allIpv6($value, $message = ''); now public static function allIpv6(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsAnyOf
Was public static function allIsAnyOf($value, $classes, $message = ''); now public static function allIsAnyOf(iterable $value, mixed $classes, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsAOf
Was public static function allIsAOf($value, $class, $message = ''); now public static function allIsAOf(iterable $value, mixed $class, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsArray
Was public static function allIsArray($value, $message = ''); now public static function allIsArray(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsArrayAccessible
Was public static function allIsArrayAccessible($value, $message = ''); now public static function allIsArrayAccessible(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsCallable
Was public static function allIsCallable($value, $message = ''); now public static function allIsCallable(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsCountable
Was public static function allIsCountable($value, $message = ''); now public static function allIsCountable(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsEmpty
Was public static function allIsEmpty($value, $message = ''); now public static function allIsEmpty(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsInstanceOf
Was public static function allIsInstanceOf($value, $class, $message = ''); now public static function allIsInstanceOf(iterable $value, mixed $class, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsInstanceOfAny
Was public static function allIsInstanceOfAny($value, $classes, $message = ''); now public static function allIsInstanceOfAny(iterable $value, mixed $classes, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsIterable
Was public static function allIsIterable($value, $message = ''); now public static function allIsIterable(iterable $value, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsList
Was public static function allIsList($array, $message = ''); now public static function allIsList(mixed $array, string $message = ''): mixed. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsMap
Was public static function allIsMap($array, $message = ''); now public static function allIsMap(mixed $array, string $message = ''): mixed. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsNonEmptyList
Was public static function allIsNonEmptyList($array, $message = ''); now public static function allIsNonEmptyList(mixed $array, string $message = ''): mixed. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsNonEmptyMap
Was public static function allIsNonEmptyMap($array, $message = ''); now public static function allIsNonEmptyMap(mixed $array, string $message = ''): mixed. packagist.org - Signature changed
Webmozart\Assert\Assert::allIsNotA
Was public static function allIsNotA($value, $class, $message = ''); now public static function allIsNotA(iterable $value, mixed $class, string $message = ''): iterable. packagist.org - Signature changed
Webmozart\Assert\Assert::allKeyExists
Was public static function allKeyExists($array, $key, $message = ''); now public static function allKeyExists(mixed $array, string|int $key, string $message = ''): mixed. packagist.org
And 598 more in this version. Sign up to see every change
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.