Chris@0: CHANGELOG Chris@0: ========= Chris@0: Chris@14: 3.4.0 Chris@14: ----- Chris@14: Chris@14: * added support for parsing YAML files using the `Yaml::parseFile()` or `Parser::parseFile()` method Chris@14: Chris@14: * the `Dumper`, `Parser`, and `Yaml` classes are marked as final Chris@14: Chris@14: * Deprecated the `!php/object:` tag which will be replaced by the Chris@14: `!php/object` tag (without the colon) in 4.0. Chris@14: Chris@14: * Deprecated the `!php/const:` tag which will be replaced by the Chris@14: `!php/const` tag (without the colon) in 4.0. Chris@14: Chris@14: * Support for the `!str` tag is deprecated, use the `!!str` tag instead. Chris@14: Chris@14: * Deprecated using the non-specific tag `!` as its behavior will change in 4.0. Chris@14: It will force non-evaluating your values in 4.0. Use plain integers or `!!float` instead. Chris@14: Chris@14: 3.3.0 Chris@14: ----- Chris@14: Chris@14: * Starting an unquoted string with a question mark followed by a space is Chris@14: deprecated and will throw a `ParseException` in Symfony 4.0. Chris@14: Chris@14: * Deprecated support for implicitly parsing non-string mapping keys as strings. Chris@14: Mapping keys that are no strings will lead to a `ParseException` in Symfony Chris@14: 4.0. Use quotes to opt-in for keys to be parsed as strings. Chris@14: Chris@14: Before: Chris@14: Chris@14: ```php Chris@14: $yaml = << new A(), 'bar' => 1], 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE | Yaml::DUMP_OBJECT); Chris@0: ``` Chris@0: Chris@0: 3.0.0 Chris@0: ----- Chris@0: Chris@0: * Yaml::parse() now throws an exception when a blackslash is not escaped Chris@0: in double-quoted strings Chris@0: Chris@0: 2.8.0 Chris@0: ----- Chris@0: Chris@0: * Deprecated usage of a colon in an unquoted mapping value Chris@0: * Deprecated usage of @, \`, | and > at the beginning of an unquoted string Chris@0: * When surrounding strings with double-quotes, you must now escape `\` characters. Not Chris@0: escaping those characters (when surrounded by double-quotes) is deprecated. Chris@0: Chris@0: Before: Chris@0: Chris@0: ```yml Chris@0: class: "Foo\Var" Chris@0: ``` Chris@0: Chris@0: After: Chris@0: Chris@0: ```yml Chris@0: class: "Foo\\Var" Chris@0: ``` Chris@0: Chris@0: 2.1.0 Chris@0: ----- Chris@0: Chris@0: * Yaml::parse() does not evaluate loaded files as PHP files by default Chris@0: anymore (call Yaml::enablePhpParsing() to get back the old behavior)