Skip to content

[Yaml] Dump null as tilde #12071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2019
Merged

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Aug 1, 2019

@OskarStark OskarStark added Yaml Waiting Code Merge Docs for features pending to be merged labels Aug 1, 2019
@OskarStark OskarStark added this to the 4.4 milestone Aug 1, 2019
@OskarStark OskarStark requested a review from xabbuh as a code owner August 1, 2019 06:15
symfony-splitter pushed a commit to symfony/yaml that referenced this pull request Aug 4, 2019
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        | symfony/symfony-docs#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 ~
fabpot added a commit to symfony/symfony that referenced this pull request Aug 4, 2019
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        | symfony/symfony-docs#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
-------

749c11d [Yaml] Add flag to dump NULL as ~
@OskarStark OskarStark removed the Waiting Code Merge Docs for features pending to be merged label Aug 4, 2019
@OskarStark
Copy link
Contributor Author

The code is merged, please review @xabbuh, thanks 😃

@OskarStark OskarStark merged commit 68cf0cf into symfony:4.4 Aug 5, 2019
OskarStark added a commit that referenced this pull request Aug 5, 2019
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] Dump null as tilde

Docs for symfony/symfony#32669

Commits
-------

68cf0cf [Yaml] Dump null as tilde
OskarStark added a commit that referenced this pull request Aug 6, 2019
…iereguiluz)

This PR was squashed before being merged into the 4.4 branch (closes #12090).

Discussion
----------

[Yaml] Tweaked the DUMP_NULL_AS_TILDE explanation

I couldn't add my review to #12071 on time, so that's why I create this PR. It's OK to close this without merging if you disagree with it. Thanks.

Commits
-------

ea71f5a [Yaml] Tweaked the DUMP_NULL_AS_TILDE explanation
@OskarStark OskarStark deleted the dump_null_as_tilde branch December 7, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants