symfony/validator breaking changes
Updated December 4, 2026
On this page
Latest version v8.2.0, released November 28, 2026. MIT license. Source repository
Its v8.0.0-BETA1 release requires PHP 8.4 or later. PHP end of life dates.
symfony/validator v8.0.0 breaking changes
- Removed
All
Removes getRequiredOptions and getDefaultOption from All constraint in symfony/validator v8.0.0 github.com - Removed
All.getRequiredOptions
These methods are removed from the All constraint. github.com - Removed
AtLeastOneOf
Removes getRequiredOptions and getDefaultOption from AtLeastOneOf constraint in symfony/validator v8.0.0 github.com - Removed
AtLeastOneOf.getRequiredOptions
These methods are removed from the AtLeastOneOf constraint. github.com - Removed
CardScheme
Removes getRequiredOptions and getDefaultOption from CardScheme constraint in symfony/validator v8.0.0 github.com - Removed
CardScheme.getRequiredOptions
These methods are removed from the CardScheme constraint. github.com - Removed
Collection
Removes getRequiredOptions and getDefaultOption from Collection constraint in symfony/validator v8.0.0 github.com - Removed
Collection.getRequiredOptions
These methods are removed from the Collection constraint. github.com - Removed
Composite
Initialize the properties referenced by getNestedConstraints() before calling the Composite constructor. github.com - Removed
Constraint
Initialize properties in the constructor of the concrete constraint class instead. github.com - Removed
CssColor
Removes getRequiredOptions and getDefaultOption from CssColor constraint in symfony/validator v8.0.0 github.com - Removed
CssColor.getRequiredOptions
These methods are removed from the CssColor constraint. github.com - Removed
Expression
Removes getRequiredOptions and getDefaultOption from Expression constraint in symfony/validator v8.0.0 github.com - Removed
Expression.getRequiredOptions
These methods are removed from the Expression constraint. github.com - Removed
Regex
Removes getRequiredOptions and getDefaultOption from Regex constraint in symfony/validator v8.0.0 github.com - Removed
Regex.getRequiredOptions
These methods are removed from the Regex constraint. github.com - Removed
Sequentially
Removes getRequiredOptions and getDefaultOption from Sequentially constraint in symfony/validator v8.0.0 github.com - Removed
Sequentially.getRequiredOptions
These methods are removed from the Sequentially constraint. github.com - Removed
Symfony\Component\Validator\Constraint::getDefaultOption
Symfony\Component\Validator\Constraint::getDefaultOption was removed in symfony/validator v8.0.0 packagist.org - Removed
Symfony\Component\Validator\Constraint::getRequiredOptions
Use mandatory constructor arguments instead. packagist.org - Removed
Symfony\Component\Validator\Constraint::normalizeOptions
These methods are removed without replacement; overriding them has no effect. packagist.org - Removed
Symfony\Component\Validator\Constraints\Bic::INVALID_BANK_CODE_ERROR
This error code was no longer used by the Bic validator. packagist.org - Removed
Symfony\Component\Validator\Constraints\CssColor::getDefaultOption
Symfony\Component\Validator\Constraints\CssColor::getDefaultOption was removed in symfony/validator v8.0.0 packagist.org - Removed
Symfony\Component\Validator\Constraints\Video::$thumbnailNotAllowedMessage
Symfony\Component\Validator\Constraints\Video::$thumbnailNotAllowedMessage was removed in symfony/validator v8.0.0 packagist.org - 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 - Removed
Symfony\Component\Validator\Mapping\ClassMetadata::__sleep
Symfony\Component\Validator\Mapping\ClassMetadata::__sleep was removed in symfony/validator v8.0.0 packagist.org - Removed
Symfony\Component\Validator\Mapping\GenericMetadata::__sleep
Use __serialize instead. packagist.org - Removed
Type
Removes getRequiredOptions and getDefaultOption from Type constraint in symfony/validator v8.0.0 github.com - Removed
Type.getRequiredOptions
These methods are removed from the Type constraint. github.com - Removed
When
Removes getRequiredOptions and getDefaultOption from When constraint in symfony/validator v8.0.0 github.com - Removed
When.getRequiredOptions
These methods are removed from the When constraint. github.com - Signature changed
ClassMetadataInterface
Custom implementations of the interface must add this method. github.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
And 5 more in this version. Sign up to see every change
symfony/validator v8.0.0-BETA1 breaking changes
- Removed
Constraint options must now be named explicitly in YAML and XML mapping files. github.com - Removed
Symfony 8 requires PHP 8.4 or later. github.com - Removed
Removes generic constraint option handling in symfony/validator 8.0.0-BETA1 github.com - Removed
GroupSequence
Pass a plain list of groups to GroupSequence instead of an associative array. github.com - Removed
Type
The Type class of PropertyInfo is removed. github.com - Behavior changed
Return types are now enforced across components, so code returning incompatible values may fail. github.com - Behavior changed
LengthValidator
Error messages of LengthValidator now mention both the min and max values. github.com - 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 - Default changed
Url
Set the requireTld option to false explicitly if you need the old behavior. github.com - Configuration changed
Symfony 8 requires PHP 8.4 or later. github.com
symfony/validator v7.0.0 breaking changes
- Removed
Symfony\Component\Validator\Constraint::$errorNames
Symfony\Component\Validator\Constraint::$errorNames was removed in symfony/validator v7.0.0 packagist.org - Removed
Symfony\Component\Validator\Constraints\Email::VALIDATION_MODE_LOOSE
Use VALIDATION_MODE_HTML5 instead. packagist.org - Removed
Symfony\Component\Validator\Constraints\ExpressionLanguageSyntax
Use ExpressionSyntax instead. packagist.org - Removed
Symfony\Component\Validator\Constraints\ExpressionLanguageSyntaxValidator
Use ExpressionSyntaxValidator instead. packagist.org - Removed
Symfony\Component\Validator\Constraints\Ip::$versions
Symfony\Component\Validator\Constraints\Ip::$versions was removed in symfony/validator v7.0.0 packagist.org - Removed
Symfony\Component\Validator\Mapping\Loader\AnnotationLoader
Symfony\Component\Validator\Mapping\Loader\AnnotationLoader was removed in symfony/validator v7.0.0 packagist.org - 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 - 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 - Removed
Symfony\Component\Validator\ValidatorBuilder::addDefaultDoctrineAnnotationReader
Symfony\Component\Validator\ValidatorBuilder::addDefaultDoctrineAnnotationReader was removed in symfony/validator v7.0.0 packagist.org - Removed
Symfony\Component\Validator\ValidatorBuilder::disableAnnotationMapping
Use disableAttributeMapping instead. packagist.org
And 303 more in this version. Sign up to see every change
symfony/validator v7.0.0-BETA1 breaking changes
- Removed
Code paths that were deprecated earlier are removed, so code relying on them must be updated. github.com - Removed
The package now requires PHP 8.2 or later. Upgrade PHP before updating. github.com - Removed
PHP versions below 8.2 are no longer supported; upgrade PHP to 8.2 or later. github.com - Removed
Compatibility layers for methods and parameters added earlier are removed. github.com - Removed
Compatibility layers for newly added methods and parameters are removed. github.com - Removed
Doctrine annotations are no longer supported for validation constraints. Move constraints to PHP attributes before upgrading. github.com - Removed
Doctrine annotations support is removed from the validator; use attributes instead. github.com - Removed
Code paths that were deprecated in 6.x are removed. Stop using them before upgrading. github.com - Signature changed
Public and protected properties now declare types, which can break subclasses that redeclare them without types. github.com - Signature changed
Compatibility layers for methods and parameters added earlier are removed, so code relying on them must use the current signatures. github.com
And 5 more in this version. Sign up to see every change
Related packages
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.