Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Yaml] Inconsistent tag parsing #22198

Closed
Closed
@ro0NL

Description

@ro0NL
Q A
Bug report? yes
Feature request? no
BC Break report? no
Symfony version 3.x

Seems like the YAML parser doesnt recognize tagged scalar nodes really well;

a: !foo bar
b: !foo 'bar'
c: !foo
    bar
d: !foo [1, 2, 3]
array:4 [▼
  "a" => "!foo bar"
  "b" => "!foo 'bar'"
  "c" => TaggedValue {#254 ▶}
  "d" => TaggedValue {#221 ▶}
]

Considering DI; both !iterator foo and !iterator [foo] produce a valid container, but a different value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions