From 9fd425ea141e8812241d67ccba3effe5ecfa0f2e Mon Sep 17 00:00:00 2001 From: Guilhem Niot Date: Sun, 23 Jul 2017 14:40:01 +0200 Subject: [PATCH] Suggest using quotes instead of Yaml::PARSE_KEYS_AS_STRINGS --- UPGRADE-3.3.md | 13 +++++-------- UPGRADE-4.0.md | 18 ++++++++---------- src/Symfony/Component/Yaml/CHANGELOG.md | 13 +++++-------- src/Symfony/Component/Yaml/Inline.php | 2 +- src/Symfony/Component/Yaml/Parser.php | 2 +- .../Component/Yaml/Tests/InlineTest.php | 2 +- .../Component/Yaml/Tests/ParserTest.php | 4 ++-- 7 files changed, 23 insertions(+), 31 deletions(-) diff --git a/UPGRADE-3.3.md b/UPGRADE-3.3.md index b8d2524654386..e43c365e6c5b6 100644 --- a/UPGRADE-3.3.md +++ b/UPGRADE-3.3.md @@ -365,8 +365,7 @@ Yaml * Deprecated support for implicitly parsing non-string mapping keys as strings. Mapping keys that are no strings will lead to a `ParseException` in Symfony - 4.0. Use the `PARSE_KEYS_AS_STRINGS` flag to opt-in for keys to be parsed as - strings. + 4.0. Use quotes to opt-in for keys to be parsed as strings. Before: @@ -374,7 +373,6 @@ Yaml $yaml = <<