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\Context\ExecutionContextInterface::buildViolation()" will return "ConstraintViolationBuilderInterface" as of its next major version. Doing the same in implementation "Drupal\Core\TypedData\Validation\ExecutionContext" will be required when upgrading.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3231686-2.patch | 1.15 KB | daffie |
Comments
Comment #2
daffie CreditAttribution: daffie commentedThe fix.
Comment #3
daffie CreditAttribution: daffie commentedI could not find any instances were contrib is extending the class Drupal\Core\TypedData\Validation\ExecutionContext. The adding of the return type hint does not change anything as the method already only returns what the added type hint is demanding. See: http://grep.xnddx.ru/search?text=ExecutionContext&filename=.
Part of the Symfony 6 in D10 initiative.
Comment #4
longwaveLooks OK to me.
Comment #6
larowlanCommitted f6094b0 and pushed to 9.3.x. Thanks!