Problem/Motivation

A number of CKEditor5 tests fail for Symfony 5.4 with an error like:

TypeError: Symfony\Component\Validator\Violation\ConstraintViolationBuilder::setParameter(): Argument #2 ($value) must be of type string, Drupal\Core\StringTranslation\TranslatableMarkup given, called in /var/www/html/core/modules/ckeditor5/src/Plugin/Validation/Constraint/FundamentalCompatibilityConstraintValidator.php on line 89

See the testbot result from the patch from #3161889-196: [META] Symfony 6 compatibility.

Proposed resolution

Fix the CKEditor5 validation constraints.

Remaining tasks

TBD

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

TBD

CommentFileSizeAuthor
#2 3250299-2.patch5.19 KBdaffie

Comments

daffie created an issue. See original summary.

daffie’s picture

Status: Active » Needs review
StatusFileSize
new5.19 KB

The fix.

daffie’s picture

Title: [Symfony6] A number of CKEditor5 test fail for Symfony 5.4 » [Symfony6] A number of CKEditor5 tests fail for Symfony 5.4
Issue summary: View changes

See the testbot result from the patch from #3161889-196: [META] Symfony 6 compatibility.

longwave’s picture

Status: Needs review » Reviewed & tested by the community

RTBC - confirmed this patch solves the issue when Symfony 5.4 is installed in the Symfony 6 meta issue.

  • catch committed 4176924 on 9.4.x
    Issue #3250299 by daffie, longwave: [Symfony6] A number of CKEditor5...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Nice easy one but good to find out now and not in six months.

Committed 4176924 and pushed to 9.4.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.