TypeError if YAML contains custom tag

Created on 18 September 2025, 1 day ago

Problem/Motivation

YAML can contain custom tags: https://symfony.com/doc/current/components/yaml.html#parsing-and-dumping...
I don't think it is useful in webform but it should not break forms.

If the webform YAML contains a custom tag, it triggers this error:

TypeError:
strlen(): Argument #1 ($string) must be of type string, Symfony\Component\Yaml\Tag\TaggedValue given

Steps to reproduce

Don't enable webform_ui.
Browse to /admin/structure/webform/manage/[webform_id].
Save this YAML:

foo:
  '#markup': !my_tag
    foo: bar

Proposed resolution

The error could be handled more gracefully.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

6.3

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024