Problem/Motivation
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 "ContextualValidatorInterface" type hint.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3231673-2.patch | 1.1 KB | daffie |
Comments
Comment #2
daffie commentedThe fix.
Comment #3
catchNo references to RecursiveValidator in contrib so this looks good.
http://grep.xnddx.ru/search?text=RecursiveValidator&filename=
Comment #4
catchThis conflicts with #3231676: [Symfony 6] Add various type hints to Drupal\Core\TypedData\Validation\RecursiveValidator::inContext() and ::startContext(), which is a good sign we should combine the changes into one issue/patch.