Skip to content

[Yaml] fix parsing inline YAML spanning multiple lines #33658

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
Sep 25, 2019

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Sep 21, 2019

Q A
Branch? 4.4
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #25239 #25379 #31333
License MIT
Doc PR

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

Excellent work! Thanks Christian!

YAML
,
],
'double quoted multi-line string' => [
Copy link
Member

Choose a reason for hiding this comment

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

The YAML content of this test doesn't match the description. It should use double quotes, right?

@fabpot
Copy link
Member

fabpot commented Sep 25, 2019

Thank you @xabbuh.

fabpot added a commit that referenced this pull request Sep 25, 2019
… (xabbuh)

This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] fix parsing inline YAML spanning multiple lines

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #25239 #25379 #31333
| License       | MIT
| Doc PR        |

Commits
-------

85a5c31 fix parsing inline YAML spanning multiple lines
@fabpot fabpot merged commit 85a5c31 into symfony:4.4 Sep 25, 2019
@xabbuh xabbuh deleted the issue-25239 branch September 26, 2019 05:23
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Oct 27, 2019
This was referenced Nov 12, 2019
@mxr576
Copy link

mxr576 commented Jul 14, 2020

Any plans for back-porting this to 3.4.x?
I created a smaller patch from this - without tests - that could be applied on 3.4.x (required by Drupal 8.9.x)

patch.diff.txt

@xabbuh
Copy link
Member Author

xabbuh commented Jul 14, 2020

We never add new features in patch releases and since we didn't support the inline notation across multiple lines before this was considered to be a new feature.

@mxr576
Copy link

mxr576 commented Jul 14, 2020

Thanks for the quick update, so we and others can use the patch above if they get a validation error with 3.4.x.

fabpot added a commit that referenced this pull request Nov 14, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] remove unreachable code

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

mistakenly added in #33658

Commits
-------

5907444 remove unreachable code
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.

[YAML] Nested array incorrectly parsed
6 participants