---
title: "symfony/validator v8.0.0 Breaking Changes on Packagist"
description: "What each symfony/validator release removed, renamed or changed: 393 breaking changes in 4 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/symfony/validator
last_updated: 2026-12-04
---

# symfony/validator breaking changes

symfony/validator v8.0.0 (November 27, 2025) is its newest release with breaking changes, 55 of them. The first: Removed All. Every breaking API change we have recorded in symfony/validator on Packagist: 393 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v8.2.0`, released November 28, 2026. MIT license. [Source repository](https://github.com/symfony/validator)

Its v8.0.0-BETA1 release requires [PHP 8.4](https://since.dev/calendar/php/8.4.md) or later. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [v7.0.0](#v-v7-0-0) to [v8.0.0](#v-v8-0-0): 65 breaking changes in 2 versions.

## symfony/validator v8.0.0 breaking changes

symfony/validator v8.0.0, released November 27, 2025: 55 breaking changes.

- **Removed** `All`  

Removes getRequiredOptions and getDefaultOption from All constraint in symfony/validator v8.0.0 [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `All.getRequiredOptions`  

These methods are removed from the All constraint. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `AtLeastOneOf`  

Removes getRequiredOptions and getDefaultOption from AtLeastOneOf constraint in symfony/validator v8.0.0 [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `AtLeastOneOf.getRequiredOptions`  

These methods are removed from the AtLeastOneOf constraint. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `CardScheme`  

Removes getRequiredOptions and getDefaultOption from CardScheme constraint in symfony/validator v8.0.0 [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `CardScheme.getRequiredOptions`  

These methods are removed from the CardScheme constraint. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Collection`  

Removes getRequiredOptions and getDefaultOption from Collection constraint in symfony/validator v8.0.0 [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Collection.getRequiredOptions`  

These methods are removed from the Collection constraint. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Composite`  

Initialize the properties referenced by getNestedConstraints() before calling the Composite constructor. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Constraint`  

Initialize properties in the constructor of the concrete constraint class instead. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `CssColor`  

Removes getRequiredOptions and getDefaultOption from CssColor constraint in symfony/validator v8.0.0 [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `CssColor.getRequiredOptions`  

These methods are removed from the CssColor constraint. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Expression`  

Removes getRequiredOptions and getDefaultOption from Expression constraint in symfony/validator v8.0.0 [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Expression.getRequiredOptions`  

These methods are removed from the Expression constraint. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Regex`  

Removes getRequiredOptions and getDefaultOption from Regex constraint in symfony/validator v8.0.0 [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Regex.getRequiredOptions`  

These methods are removed from the Regex constraint. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Sequentially`  

Removes getRequiredOptions and getDefaultOption from Sequentially constraint in symfony/validator v8.0.0 [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Sequentially.getRequiredOptions`  

These methods are removed from the Sequentially constraint. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Symfony\Component\Validator\Constraint::getDefaultOption`  

Symfony\\Component\\Validator\\Constraint::getDefaultOption was removed in symfony/validator v8.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Removed** `Symfony\Component\Validator\Constraint::getRequiredOptions`  

Use mandatory constructor arguments instead. [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Removed** `Symfony\Component\Validator\Constraint::normalizeOptions`  

These methods are removed without replacement; overriding them has no effect. [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Removed** `Symfony\Component\Validator\Constraints\Bic::INVALID_BANK_CODE_ERROR`  

This error code was no longer used by the Bic validator. [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Removed** `Symfony\Component\Validator\Constraints\CssColor::getDefaultOption`  

Symfony\\Component\\Validator\\Constraints\\CssColor::getDefaultOption was removed in symfony/validator v8.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Removed** `Symfony\Component\Validator\Constraints\Video::$thumbnailNotAllowedMessage`  

Symfony\\Component\\Validator\\Constraints\\Video::$thumbnailNotAllowedMessage was removed in symfony/validator v8.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Removed** `Symfony\Component\Validator\Constraints\Video::THUMBNAIL_NOT_ALLOWED_ERROR`  

Symfony\\Component\\Validator\\Constraints\\Video::THUMBNAIL_NOT_ALLOWED_ERROR was removed in symfony/validator v8.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Removed** `Symfony\Component\Validator\Mapping\ClassMetadata::__sleep`  

Symfony\\Component\\Validator\\Mapping\\ClassMetadata::\_\_sleep was removed in symfony/validator v8.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Removed** `Symfony\Component\Validator\Mapping\GenericMetadata::__sleep`  

Use \_\_serialize instead. [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Removed** `Type`  

Removes getRequiredOptions and getDefaultOption from Type constraint in symfony/validator v8.0.0 [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Type.getRequiredOptions`  

These methods are removed from the Type constraint. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `When`  

Removes getRequiredOptions and getDefaultOption from When constraint in symfony/validator v8.0.0 [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Removed** `When.getRequiredOptions`  

These methods are removed from the When constraint. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Signature changed** `ClassMetadataInterface`  

Custom implementations of the interface must add this method. [github.com](https://github.com/symfony/validator/blob/v8.0.0/CHANGELOG.md)
- **Signature changed** `Symfony\Component\Validator\Constraints\AbstractComparison::__construct`  

Was public function \_\_construct(mixed $value = null, ?string $propertyPath = null, ?string $message = null, ?array $groups = null, mixed $payload = null, ?array $options = null); now public function \_\_construct(mixed $value = null, ?string... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\All::__construct`  

Was public function \_\_construct(mixed $constraints = null, ?array $groups = null, mixed $payload = null); now public function \_\_construct(array|Constraint|null $constraints = null, ?array $groups = null, mixed $payload = null). [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\AtLeastOneOf::__construct`  

Was public function \_\_construct(mixed $constraints = null, ?array $groups = null, mixed $payload = null, ?string $message = null, ?string $messageCollection = null, ?bool $includeInternalMessages = null); now public function... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Callback::__construct`  

Was public function \_\_construct(array|string|callable|null $callback = null, ?array $groups = null, mixed $payload = null, ?array $options = null); now public function \_\_construct(string|callable|null $callback = null, ?array $groups =... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\CardScheme::__construct`  

Was public function \_\_construct(array|string|null $schemes, ?string $message = null, ?array $groups = null, mixed $payload = null, ?array $options = null); now public function \_\_construct(array|string|null $schemes, ?string $message =... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Cascade::__construct`  

Was public function \_\_construct(array|string|null $exclude = null, ?array $options = null); now public function \_\_construct(array|string|null $exclude = null). [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Collection::__construct`  

Was public function \_\_construct(mixed $fields = null, ?array $groups = null, mixed $payload = null, ?bool $allowExtraFields = null, ?bool $allowMissingFields = null, ?string $extraFieldsMessage = null, ?string $missingFieldsMessage =... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Count::__construct`  

Was public function \_\_construct(int|array|null $exactly = null, ?int $min = null, ?int $max = null, ?int $divisibleBy = null, ?string $exactMessage = null, ?string $minMessage = null, ?string $maxMessage = null, ?string $divisibleByMessage... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\CssColor::__construct`  

Was public function \_\_construct(array|string $formats = \[\], ?string $message = null, ?array $groups = null, $payload = null, ?array $options = null); now public function \_\_construct(array|string $formats = \[\], ?string $message = null... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\DateTime::__construct`  

Was public function \_\_construct(string|array|null $format = null, ?string $message = null, ?array $groups = null, mixed $payload = null, ?array $options = null); now public function \_\_construct(?string $format = null, ?string $message =... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Existence::__construct`  

Was public function \_\_construct(mixed $constraints = null, ?array $groups = null, mixed $payload = null); now public function \_\_construct(array|Constraint $constraints = \[\], ?array $groups = null, mixed $payload = null). [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Expression::__construct`  

Was public function \_\_construct(string|ExpressionObject|array|null $expression, ?string $message = null, ?array $values = null, ?array $groups = null, mixed $payload = null, ?array $options = null, ?bool $negate = null); now public... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Isbn::__construct`  

Was public function \_\_construct(string|array|null $type = null, ?string $message = null, ?string $isbn10Message = null, ?string $isbn13Message = null, ?string $bothIsbnMessage = null, ?array $groups = null, mixed $payload = null, ?array... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Length::__construct`  

Was public function \_\_construct(int|array|null $exactly = null, ?int $min = null, ?int $max = null, ?string $charset = null, ?callable $normalizer = null, ?string $countUnit = null, ?string $exactMessage = null, ?string $minMessage = null... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Regex::__construct`  

Was public function \_\_construct(string|array|null $pattern, ?string $message = null, ?string $htmlPattern = null, ?bool $match = null, ?callable $normalizer = null, ?array $groups = null, mixed $payload = null, ?array $options = null); now... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Sequentially::__construct`  

Was public function \_\_construct(mixed $constraints = null, ?array $groups = null, mixed $payload = null); now public function \_\_construct(array|Constraint|null $constraints = null, ?array $groups = null, mixed $payload = null). [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Timezone::__construct`  

Was public function \_\_construct(int|array|null $zone = null, ?string $message = null, ?string $countryCode = null, ?bool $intlCompatible = null, ?array $groups = null, mixed $payload = null, ?array $options = null); now public function... [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)
- **Signature changed** `Symfony\Component\Validator\Constraints\Traverse::__construct`  

Was public function \_\_construct(bool|array|null $traverse = null, mixed $payload = null); now public function \_\_construct(?bool $traverse = null, mixed $payload = null). [packagist.org](https://packagist.org/packages/symfony/validator#v8.0.0)

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

## symfony/validator v8.0.0-BETA1 breaking changes

symfony/validator v8.0.0-BETA1, released November 27, 2025: 10 breaking changes.

- **Removed**  

Constraint options must now be named explicitly in YAML and XML mapping files. [github.com](https://github.com/symfony/validator/releases/tag/v8.0.0-BETA1)
- **Removed**  

Symfony 8 requires PHP 8.4 or later. [github.com](https://github.com/symfony/validator/releases/tag/v8.0.0-BETA1)
- **Removed**  

Removes generic constraint option handling in symfony/validator 8.0.0-BETA1 [github.com](https://github.com/symfony/validator/releases/tag/v8.0.0-BETA1)
- **Removed** `GroupSequence`  

Pass a plain list of groups to GroupSequence instead of an associative array. [github.com](https://github.com/symfony/validator/releases/tag/v8.0.0-BETA1)
- **Removed** `Type`  

The Type class of PropertyInfo is removed. [github.com](https://github.com/symfony/validator/releases/tag/v8.0.0-BETA1)
- **Behavior changed**  

Return types are now enforced across components, so code returning incompatible values may fail. [github.com](https://github.com/symfony/validator/releases/tag/v8.0.0-BETA1)
- **Behavior changed** `LengthValidator`  

Error messages of LengthValidator now mention both the min and max values. [github.com](https://github.com/symfony/validator/releases/tag/v8.0.0-BETA1)
- **Behavior changed** `Url`  

The Url constraint now requires a top-level domain by default. URLs without one will fail validation unless the behavior is configured otherwise. [github.com](https://github.com/symfony/validator/releases/tag/v8.0.0-BETA1)
- **Default changed** `Url`  

Set the requireTld option to false explicitly if you need the old behavior. [github.com](https://github.com/symfony/validator/releases/tag/v8.0.0-BETA1)
- **Configuration changed**  

Symfony 8 requires PHP 8.4 or later. [github.com](https://github.com/symfony/validator/releases/tag/v8.0.0-BETA1)

## symfony/validator v7.0.0 breaking changes

symfony/validator v7.0.0, released November 29, 2023: 313 breaking changes.

- **Removed** `Symfony\Component\Validator\Constraint::$errorNames`  

Symfony\\Component\\Validator\\Constraint::$errorNames was removed in symfony/validator v7.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v7.0.0)
- **Removed** `Symfony\Component\Validator\Constraints\Email::VALIDATION_MODE_LOOSE`  

Use VALIDATION_MODE_HTML5 instead. [packagist.org](https://packagist.org/packages/symfony/validator#v7.0.0)
- **Removed** `Symfony\Component\Validator\Constraints\ExpressionLanguageSyntax`  

Use ExpressionSyntax instead. [packagist.org](https://packagist.org/packages/symfony/validator#v7.0.0)
- **Removed** `Symfony\Component\Validator\Constraints\ExpressionLanguageSyntaxValidator`  

Use ExpressionSyntaxValidator instead. [packagist.org](https://packagist.org/packages/symfony/validator#v7.0.0)
- **Removed** `Symfony\Component\Validator\Constraints\Ip::$versions`  

Symfony\\Component\\Validator\\Constraints\\Ip::$versions was removed in symfony/validator v7.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v7.0.0)
- **Removed** `Symfony\Component\Validator\Mapping\Loader\AnnotationLoader`  

Symfony\\Component\\Validator\\Mapping\\Loader\\AnnotationLoader was removed in symfony/validator v7.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v7.0.0)
- **Removed** `Symfony\Component\Validator\Mapping\Loader\AttributeLoader::__construct`  

Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader::\_\_construct was removed in symfony/validator v7.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v7.0.0)
- **Removed** `Symfony\Component\Validator\Mapping\Loader\AttributeLoader::$reader`  

Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader::$reader was removed in symfony/validator v7.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v7.0.0)
- **Removed** `Symfony\Component\Validator\ValidatorBuilder::addDefaultDoctrineAnnotationReader`  

Symfony\\Component\\Validator\\ValidatorBuilder::addDefaultDoctrineAnnotationReader was removed in symfony/validator v7.0.0 [packagist.org](https://packagist.org/packages/symfony/validator#v7.0.0)
- **Removed** `Symfony\Component\Validator\ValidatorBuilder::disableAnnotationMapping`  

Use disableAttributeMapping instead. [packagist.org](https://packagist.org/packages/symfony/validator#v7.0.0)

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

## symfony/validator v7.0.0-BETA1 breaking changes

symfony/validator v7.0.0-BETA1, released November 29, 2023: 15 breaking changes.

- **Removed**  

Code paths that were deprecated earlier are removed, so code relying on them must be updated. [github.com](https://github.com/symfony/validator/releases/tag/v7.0.0-BETA1)
- **Removed**  

The package now requires PHP 8.2 or later. Upgrade PHP before updating. [github.com](https://github.com/symfony/validator/releases/tag/v7.0.0-BETA1)
- **Removed**  

PHP versions below 8.2 are no longer supported; upgrade PHP to 8.2 or later. [github.com](https://github.com/symfony/validator/releases/tag/v7.0.0-BETA1)
- **Removed**  

Compatibility layers for methods and parameters added earlier are removed. [github.com](https://github.com/symfony/validator/releases/tag/v7.0.0-BETA1)
- **Removed**  

Compatibility layers for newly added methods and parameters are removed. [github.com](https://github.com/symfony/validator/releases/tag/v7.0.0-BETA1)
- **Removed**  

Doctrine annotations are no longer supported for validation constraints. Move constraints to PHP attributes before upgrading. [github.com](https://github.com/symfony/validator/releases/tag/v7.0.0-BETA1)
- **Removed**  

Doctrine annotations support is removed from the validator; use attributes instead. [github.com](https://github.com/symfony/validator/releases/tag/v7.0.0-BETA1)
- **Removed**  

Code paths that were deprecated in 6.x are removed. Stop using them before upgrading. [github.com](https://github.com/symfony/validator/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Public and protected properties now declare types, which can break subclasses that redeclare them without types. [github.com](https://github.com/symfony/validator/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Compatibility layers for methods and parameters added earlier are removed, so code relying on them must use the current signatures. [github.com](https://github.com/symfony/validator/releases/tag/v7.0.0-BETA1)

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

## Related packages

- [symfony/asset](https://since.dev/packages/packagist/symfony/asset.md)
- [symfony/browser-kit](https://since.dev/packages/packagist/symfony/browser-kit.md)
- [symfony/cache](https://since.dev/packages/packagist/symfony/cache.md)
- [symfony/config](https://since.dev/packages/packagist/symfony/config.md)
- [symfony/console](https://since.dev/packages/packagist/symfony/console.md)
- [symfony/css-selector](https://since.dev/packages/packagist/symfony/css-selector.md)

## 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.
