Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
Method "Symfony\Component\Validator\ConstraintValidatorFactoryInterface::getInstance()" will return "ConstraintValidatorInterface" as of its next major version. Doing the same in implementation "Drupal\Core\Validation\ConstraintValidatorFactory" will be required when upgrading.
Steps to reproduce
Proposed resolution
Add the "ConstraintValidatorInterface" return type hint.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3233466-2.patch | 1.13 KB | daffie |
Comments
Comment #2
daffie CreditAttribution: daffie commentedI could not find any instances where the method was overridden in contrib. See: http://grep.xnddx.ru/search?text=ConstraintValidatorFactory&filename=.
Comment #3
larowlanComment #4
alexpottCommitted 0ffa3f0 and pushed to 9.3.x. Thanks!
As per @catch There's a CR here: https://www.drupal.org/node/3236232