Skip to content

[Yaml] fix DUMP_EMPTY_ARRAY_AS_SEQUENCE flag value #21678

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
Feb 20, 2017

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 20, 2017

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

@@ -29,7 +29,7 @@ class Yaml
const DUMP_OBJECT_AS_MAP = 64;
const DUMP_MULTI_LINE_LITERAL_BLOCK = 128;
const PARSE_CONSTANT = 256;
const DUMP_EMPTY_ARRAY_AS_SEQUENCE = 512;
const DUMP_EMPTY_ARRAY_AS_SEQUENCE = 1024;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about reversing DUMP_EMPTY_ARRAY_AS_SEQUENCE and PARSE_CUSTOM_TAGS values? It would look more natural imo.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it's not worth it. Otherwise we begin to swap values every time we introduce new flags.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it an issue really?

@fabpot
Copy link
Member

fabpot commented Feb 20, 2017

Thank you @xabbuh.

@fabpot fabpot merged commit 3953d76 into symfony:master Feb 20, 2017
fabpot added a commit that referenced this pull request Feb 20, 2017
This PR was merged into the 3.3-dev branch.

Discussion
----------

[Yaml] fix DUMP_EMPTY_ARRAY_AS_SEQUENCE flag value

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

3953d76 fix DUMP_EMPTY_ARRAY_AS_SEQUENCE flag value
@xabbuh xabbuh deleted the pr-21471 branch February 20, 2017 17:10
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.

5 participants