Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Yaml] Fix sequence with following mapping #39064

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

Closed
wants to merge 1 commit into from

Conversation

Matth--
Copy link
Contributor

@Matth-- Matth-- commented Nov 12, 2020

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

When handling a sequence (array) on a root level, the closing bracket is not detected (it it is the first character) and every following mapping will throw a ParseException: Unexpected characters near "XXX" at line X

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 5.x branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@Matth-- Matth-- force-pushed the fix/yaml-parser-sequence branch from 3d9c634 to 8531f82 Compare November 12, 2020 14:53
@xabbuh xabbuh added the Yaml label Nov 13, 2020
@xabbuh
Copy link
Member

xabbuh commented Nov 15, 2020

Thank you @Matth-- for your PR. The change you propose is perfectly valid. But since the handling of sequences/mappings is totally reworked in #33763 due to other edge cases that were also failing I have added your test case there to make your that your issue will be fixed as well. So I am going to close here. Thank you for understanding.

@xabbuh xabbuh closed this Nov 15, 2020
@Matth--
Copy link
Contributor Author

Matth-- commented Nov 15, 2020

@xabbuh

I noticed there were multiple pr's regarding the same function 🙂.

👍

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

Discussion
----------

[Yaml] fix lexing nested sequences/mappings

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #34805, #37788, #37876, #39011, #39013, #39064
| License       | MIT
| Doc PR        |

Commits
-------

4c15f80 fix lexing nested sequences/mappings
@Matth-- Matth-- deleted the fix/yaml-parser-sequence branch June 2, 2021 13: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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.