Skip to content

Commit 273ed25

Browse files
Christian Flothmannxabbuh
authored andcommitted
[Yaml] more fixes to changelog and upgrade files
1 parent 074a4bf commit 273ed25

File tree

3 files changed

+43
-6
lines changed

3 files changed

+43
-6
lines changed

UPGRADE-2.8.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,5 +511,17 @@ Yaml
511511

512512
* Deprecated usage of a colon in an unquoted mapping value
513513
* Deprecated usage of `@`, `` ` ``, `|`, and `>` at the beginning of an unquoted string
514-
* Deprecated non-escaped \ in double-quoted strings when parsing Yaml
515-
("Foo\Var" is not valid whereas "Foo\\Var" is)
514+
* When surrounding strings with double-quotes, you must now escape `\` characters. Not
515+
escaping those characters (when surrounded by double-quotes) is deprecated.
516+
517+
Before:
518+
519+
```yml
520+
class: "Foo\Var"
521+
```
522+
523+
After:
524+
525+
```yml
526+
class: "Foo\\Var"
527+
```

UPGRADE-3.0.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,8 +1230,21 @@ UPGRADE FROM 2.x to 3.0
12301230

12311231
* Using a colon in an unquoted mapping value leads to a `ParseException`.
12321232
* Starting an unquoted string with `@`, `` ` ``, `|`, or `>` leads to a `ParseException`.
1233-
* Deprecated non-escaped \ in double-quoted strings when parsing Yaml
1234-
("Foo\Var" is not valid whereas "Foo\\Var" is)
1233+
* When surrounding strings with double-quotes, you must now escape `\` characters. Not
1234+
escaping those characters (when surrounded by double-quotes) leads to a `ParseException`.
1235+
1236+
Before:
1237+
1238+
```yml
1239+
class: "Foo\Var"
1240+
```
1241+
1242+
After:
1243+
1244+
```yml
1245+
class: "Foo\\Var"
1246+
```
1247+
12351248

12361249
* The ability to pass file names to `Yaml::parse()` has been removed.
12371250

src/Symfony/Component/Yaml/CHANGELOG.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,20 @@ CHANGELOG
66

77
* Deprecated usage of a colon in an unquoted mapping value
88
* Deprecated usage of @, \`, | and > at the beginning of an unquoted string
9-
* Deprecated non-escaped \ in double-quoted strings when parsing Yaml
10-
("Foo\Var" is not valid whereas "Foo\\Var" is)
9+
* When surrounding strings with double-quotes, you must now escape `\` characters. Not
10+
escaping those characters (when surrounded by double-quotes) is deprecated.
11+
12+
Before:
13+
14+
```yml
15+
class: "Foo\Var"
16+
```
17+
18+
After:
19+
20+
```yml
21+
class: "Foo\\Var"
22+
```
1123
1224
2.1.0
1325
-----

0 commit comments

Comments
 (0)