Problem/Motivation
Since symfony/validator 7.4: Support for passing the choices as the first argument to Symfony\Component\Validator\Constraints\Choice is deprecated.
Steps to reproduce
Proposed resolution
Call the Choice constructor with the choices named argument instead.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3555535
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3555535-validator-choices
changes, plain diff MR !13700
Comments
Comment #2
godotislateSome of the work in MR 12291 for #3522497: Passing an $options array to constraint constructors is deprecated, use named arguments instead may be relevant.
Comment #4
longwaveComment #5
godotislatelgtm.
Will be good to get this in so I can rebase while working on #3555534: Since symfony/validator 7.4: Support for evaluating options in the base Constraint class is deprecated. Initialize properties in the constructor instead..
Comment #7
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x, thanks!
Comment #12
catchThis broke HEAD, reverting.
Comment #16
godotislateThere was a schema with a Choice constraint added upstream before this was committed, and MR is updated to fix. Tests are passing now.
Comment #19
catchTrying again. Committed/pushed to 11.x and cherry-picked to 11.3.x, thanks!