7 * Mappings with a colon (`:`) that is not followed by a whitespace are deprecated
8 when the mapping key is not quoted and will lead to a `ParseException` in
9 Symfony 4.0 (e.g. `foo:bar` must be `foo: bar`).
11 * Added support for parsing PHP constants:
14 Yaml::parse('!php/const:PHP_INT_MAX', Yaml::PARSE_CONSTANT);
17 * Support for silently ignoring duplicate mapping keys in YAML has been
18 deprecated and will lead to a `ParseException` in Symfony 4.0.
23 * Added support to dump `stdClass` and `ArrayAccess` objects as YAML mappings
24 through the `Yaml::DUMP_OBJECT_AS_MAP` flag.
26 * Strings that are not UTF-8 encoded will be dumped as base64 encoded binary
29 * Added support for dumping multi line strings as literal blocks.
31 * Added support for parsing base64 encoded binary data when they are tagged
32 with the `!!binary` tag.
34 * Added support for parsing timestamps as `\DateTime` objects:
37 Yaml::parse('2001-12-15 21:59:43.10 -5', Yaml::PARSE_DATETIME);
40 * `\DateTime` and `\DateTimeImmutable` objects are dumped as YAML timestamps.
42 * Deprecated usage of `%` at the beginning of an unquoted string.
44 * Added support for customizing the YAML parser behavior through an optional bit field:
47 Yaml::parse('{ "foo": "bar", "fiz": "cat" }', Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE | Yaml::PARSE_OBJECT | Yaml::PARSE_OBJECT_FOR_MAP);
50 * Added support for customizing the dumped YAML string through an optional bit field:
53 Yaml::dump(array('foo' => new A(), 'bar' => 1), 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE | Yaml::DUMP_OBJECT);
59 * Yaml::parse() now throws an exception when a blackslash is not escaped
60 in double-quoted strings
65 * Deprecated usage of a colon in an unquoted mapping value
66 * Deprecated usage of @, \`, | and > at the beginning of an unquoted string
67 * When surrounding strings with double-quotes, you must now escape `\` characters. Not
68 escaping those characters (when surrounded by double-quotes) is deprecated.
85 * Yaml::parse() does not evaluate loaded files as PHP files by default
86 anymore (call Yaml::enablePhpParsing() to get back the old behavior)