Problem/Motivation
Drupal\Tests\jsonapi\Kernel\EventSubscriber\ResourceObjectNormalizerCacherTest fails with Symfony 5, because the fix that we created in the method Drupal\Core\Validation\DrupalTranslator::trans() was not strict enough. It wrongly thinks that every validation error message with the character "|" in it is a plural message. The fix was added in #3231683: [Symfony 6] A number of methods of the class Drupal\Core\TypedData\Validation\ExecutionContext are considered internal and Drupal should not override them..
Proposed resolution
Make the fix in the method Drupal\Core\Validation\DrupalTranslator::trans() a bit stricter.
Remaining tasks
TBD
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
None
Comment | File | Size | Author |
---|---|---|---|
#2 | 3248809-2.patch | 1.07 KB | daffie |
Comments
Comment #2
daffie CreditAttribution: daffie commentedThe fix.
Comment #3
larowlanLooks straight forward enough
Comment #6
catchCommitted f4d355a and pushed to 9.4.x. Thanks! Also cherry-picked to 9.3.x.