Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Method "Symfony\Component\Validator\Validator\ValidatorInterface::inContext()" will return "ContextualValidatorInterface" as of its next major version. Doing the same in implementation "Drupal\Core\TypedData\Validation\RecursiveValidator" will be required when upgrading.
Method "Symfony\Component\Validator\Validator\ValidatorInterface::startContext()" will return "ContextualValidatorInterface" as of its next major version. Doing the same in implementation "Drupal\Core\TypedData\Validation\RecursiveValidator" will be required when upgrading.
Steps to reproduce
Proposed resolution
Add the "ContextualValidatorInterface" type hint.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#5 | 3231676-5.patch | 1.42 KB | daffie |
Comments
Comment #2
daffie CreditAttribution: daffie commentedThe fix.
Comment #3
catchNo references to
RecursiveValidator
in contrib so I think this is ready to go.http://grep.xnddx.ru/search?text=RecursiveValidator&filename=
Comment #4
catchMarked #3231673: [Symfony 6] Add "ContextualValidatorInterface" type hint to Drupal\Core\TypedData\Validation\RecursiveValidator::startContext() as duplicate - let's consolidate these changes, since they conflict a separate patches.
Comment #5
daffie CreditAttribution: daffie commentedThe fixes combined with the one from #3231673: [Symfony 6] Add "ContextualValidatorInterface" type hint to Drupal\Core\TypedData\Validation\RecursiveValidator::startContext().
Comment #6
daffie CreditAttribution: daffie commentedComment #7
catchBack to RTBC, thanks!
Comment #8
larowlanCommitted b800480 and pushed to 9.3.x. Thanks!