{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/15241","labels_url":"https://api.github.com/repos/symfony/symfony/issues/15241/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/15241/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/15241/events","html_url":"https://github.com/symfony/symfony/pull/15241","id":93823251,"number":15241,"title":"[Yaml] nested merge keys","user":{"login":"mathroc","id":291531,"avatar_url":"https://avatars.githubusercontent.com/u/291531?v=3","gravatar_id":"","url":"https://api.github.com/users/mathroc","html_url":"https://github.com/mathroc","followers_url":"https://api.github.com/users/mathroc/followers","following_url":"https://api.github.com/users/mathroc/following{/other_user}","gists_url":"https://api.github.com/users/mathroc/gists{/gist_id}","starred_url":"https://api.github.com/users/mathroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathroc/subscriptions","organizations_url":"https://api.github.com/users/mathroc/orgs","repos_url":"https://api.github.com/users/mathroc/repos","events_url":"https://api.github.com/users/mathroc/events{/privacy}","received_events_url":"https://api.github.com/users/mathroc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Yaml","name":"Yaml","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-08T15:46:38Z","updated_at":"2015-08-06T20:21:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/15241","html_url":"https://github.com/symfony/symfony/pull/15241","diff_url":"https://github.com/symfony/symfony/pull/15241.diff","patch_url":"https://github.com/symfony/symfony/pull/15241.patch"},"body":"When trying to use nested merge keys in Yaml, the ref sometimes had the wrong value\r\n\r\neg, with:\r\n\r\n```yaml\r\ntaz: &taz\r\n    a: Steve\r\n    w:\r\n        p: 1234\r\nnested:\r\n    <<: *taz\r\n    d: Doug\r\n    w: &nestedref\r\n        p: 12345\r\n    z:\r\n        <<: *nestedref \r\n```\r\n\r\nin this case, the ref `nestedref` had the value \"Doug\", which cause this error : \r\n\r\n    Symfony\\Component\\Yaml\\Exception\\ParseException: YAML merge keys used with a scalar value instead of an array at line 38 (near \"<<: *nestedref\").\r\n\r\nIt now works as expected\r\n\r\n| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | \r\n| License       | MIT\r\n| Doc PR        | "},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/128496697","html_url":"https://github.com/symfony/symfony/pull/15241#issuecomment-128496697","issue_url":"https://api.github.com/repos/symfony/symfony/issues/15241","id":128496697,"user":{"login":"mathroc","id":291531,"avatar_url":"https://avatars.githubusercontent.com/u/291531?v=3","gravatar_id":"","url":"https://api.github.com/users/mathroc","html_url":"https://github.com/mathroc","followers_url":"https://api.github.com/users/mathroc/followers","following_url":"https://api.github.com/users/mathroc/following{/other_user}","gists_url":"https://api.github.com/users/mathroc/gists{/gist_id}","starred_url":"https://api.github.com/users/mathroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathroc/subscriptions","organizations_url":"https://api.github.com/users/mathroc/orgs","repos_url":"https://api.github.com/users/mathroc/repos","events_url":"https://api.github.com/users/mathroc/events{/privacy}","received_events_url":"https://api.github.com/users/mathroc/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T20:21:48Z","updated_at":"2015-08-06T20:21:48Z","body":"@stof indeed that was easy enough : #15480"}}