Problem/Motivation

Change Record: Constraint plugins must use named arguments instead of an options array

1) /var/www/html/web/core/lib/Drupal/Core/Test/HttpClientMiddleware/TestHttpClientMiddleware.php:51
Passing any non-associative-array options to configure constraint plugin "Choice" is deprecated in drupal:11.4.0 and will not be supported in drupal:12.0.0. See https://www.drupal.org/node/3554746

Steps to reproduce

Run tests on 3.x branch.

Proposed resolution

  • Add the required "choices" key to the schema.
  • Bump minimum Drupal Core to 11.4.

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ✅ Testing to ensure no regression
  • ❌ Automated unit testing coverage
  • ✅ Code review by maintainers
  • ❌ Full testing and approval
  • ✅ Credit contributors
  • ✅ Release notes snippet
  • ❌ Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • Config schema changed but still functionally the same

Release notes snippet

Issue fork cas_server-3638449

Command icon 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:

Comments

elc created an issue. See original summary.

elc’s picture

Issue summary: View changes

  • elc committed 61b73df0 on 3.0.x
    task: #3638449 Add named parameter choices to Choice.
    
    By: elc
    
elc’s picture

Assigned: elc » Unassigned
Issue summary: View changes
Status: Needs work » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.