This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier 7479543f9a feature #32669 [Yaml] Add flag to dump NULL as ~ (OskarStark)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] Add flag to dump NULL as ~

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/pull/12071

This PR adds the ability to dump `null` as `~` by a new Flag `Yaml::DUMP_NULL_AS_TILDE`:
```diff
- foo: null
+ foo: ~
```

Todos:
- [x] Fix/add tests

Commits
-------

749c11d94c [Yaml] Add flag to dump NULL as ~
2019-08-04 04:32:09 +02:00
..
Asset Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
BrowserKit Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Cache cs fix 2019-08-04 00:08:43 +02:00
Config Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Console Merge branch '4.3' into 4.4 2019-08-04 00:33:03 +02:00
CssSelector Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Debug Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
DependencyInjection Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
DomCrawler Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Dotenv Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
ErrorHandler Merge branch '4.3' into 4.4 2019-08-02 14:28:34 +02:00
ErrorRenderer Merge branch '4.3' into 4.4 2019-08-03 16:05:30 +02:00
EventDispatcher Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
ExpressionLanguage Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Filesystem cs fix 2019-08-04 00:08:43 +02:00
Finder cs fix 2019-08-04 00:08:43 +02:00
Form cs fix 2019-08-04 00:08:43 +02:00
HttpClient fix merge 2019-08-04 00:51:07 +02:00
HttpFoundation Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
HttpKernel Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Inflector Merge branch '4.3' into 4.4 2019-07-27 08:43:05 +02:00
Intl fix merge 2019-08-04 00:51:07 +02:00
Ldap Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Lock cs fix 2019-08-04 00:08:43 +02:00
Mailer [Mailer] added debug info on HTTP transport exceptions 2019-08-03 17:35:50 +02:00
Messenger Merge branch '4.3' into 4.4 2019-08-02 14:28:34 +02:00
Mime Merge branch '4.3' into 4.4 2019-08-02 14:28:34 +02:00
OptionsResolver Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Process Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
PropertyAccess cs fix 2019-08-04 00:08:43 +02:00
PropertyInfo Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Routing Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Security Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Serializer Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Stopwatch Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Templating Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Translation Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Validator Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
VarDumper Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
VarExporter Merge branch '4.3' into 4.4 2019-08-02 14:28:34 +02:00
WebLink Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Workflow Merge branch '4.3' into 4.4 2019-08-03 23:59:26 +02:00
Yaml feature #32669 [Yaml] Add flag to dump NULL as ~ (OskarStark) 2019-08-04 04:32:09 +02:00