Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Symfony YAML parser doesn't handle complex YAML format #20579

Copy link
Copy link
Closed
@BourotBenjamin

Description

@BourotBenjamin
Issue body actions

As described here :
http://yaml.org/spec/1.2/spec.html#id2760395

A question mark and space (“? ”) indicate a complex mapping key.

But, when I try to load a valid YAML file using complex mappig, I got an error :

Error parsing YAML, invalid file "diet.fr.yml"

ParseException: Unable to parse at line 3 (near "? "1"").

My file content :

---
diet:
  ? "1"
  :
    name: végétalien

As PECL YAML extension ( https://pecl.php.net/package/yaml ) exists, works fine and seems more complete than symfony's one, wouldn't be more simple to replace Symfony's YAML component by php extension ?

What do you think ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.