Upgrading symfony/validator 6 to 7
Breakingv6.4.49 → v7.4.22Breaking3Security2Platform1Deprecated12New43Changed7Fixed95Other92
Fetching 79 releases from GitHub…78 / 79
BreakingUpgrade verdict
3 breaking changes and a platform requirement change and 2 security fixes.
In plain terms
- Removes Doctrine annotations support.
- Removes deprecated code paths.
- Removes BC layers related to new methods and new parameters.
- This version requires PHP 8.2 or newer.
Must act Top 5 of 18 that need code or config changes
PHP requirement changed in v7.0.0-BETA1: >=8.1 → >=8.2.
What you must change
Breaking3
Removes Doctrine annotations support.
Removes deprecated code paths.
Removes BC layers related to new methods and new parameters.
Security2
Prevents ffprobe option injection from video filenames.
ffprobeSymfony has an incorrect response from Validator when input ends with
Low · CVSS 3.1\nPlatform1
Bumps the minimum PHP version to 8.2.
Deprecations to plan for
Deprecated12
Deprecates passing an associative array to GroupSequence.
GroupSequenceDeprecates implicit constraint option names in YAML/XML mapping files.
Deprecates implementing __sleep/wakeup() on AbstractPart implementations.
AbstractPart__sleep__wakeupDeprecates implementing __sleep/wakeup() on GenericMetadata implementations.
GenericMetadata__sleep__wakeupDeprecates passing choices as the $options argument to the Choice constraint.
Choice$optionsMarks getRequiredOptions() and getDefaultOption() of UniqueEntity as deprecated.
UniqueEntitygetRequiredOptions()getDefaultOption()Deprecates handling options in the base Constraint class.
ConstraintDeprecates the use of option arrays to configure validation constraints.
Deprecates the Bic::INVALID_BANK_CODE_ERROR constant.
Bic::INVALID_BANK_CODE_ERRORDeprecates PropertyInfo Type.
PropertyInfo TypeDeprecates annotation occurrences.
Deprecates annotations in favor of attributes.