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

CommentFileSizeAuthor
#2 3231673-2.patch1.1 KBdaffie

Comments

daffie created an issue. See original summary.

daffie’s picture

Status: Active » Needs review
StatusFileSize
new1.1 KB

The fix.

catch’s picture

Status: Needs review » Reviewed & tested by the community

No references to RecursiveValidator in contrib so this looks good.

http://grep.xnddx.ru/search?text=RecursiveValidator&filename=

catch’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

This 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.