Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Symfony Yaml 5.2 does not handle space after a quote. #39296

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
Xachman opened this issue Dec 3, 2020 · 3 comments
Closed

Symfony Yaml 5.2 does not handle space after a quote. #39296

Xachman opened this issue Dec 3, 2020 · 3 comments

Comments

@Xachman
Copy link

Xachman commented Dec 3, 2020

Symfony version(s) affected: 5.2

Description
If you parse valid yaml with a space after a quote you will receive the error:

Unexpected characters near " space after the quote" " at line 1 (near "test: "anything with a space after the quote" ").

How to reproduce

Parse any valid yaml that uses quotes for a value and has a space at the end.

Example:

\Symfony\Component\Yaml\Yaml::parse("test: 'a one line quote test' ");

Possible Solution

Additional context

@xabbuh
Copy link
Member

xabbuh commented Dec 3, 2020

Thank you for the report. This is already fixed by #39274 which will be part of the next release.

@xabbuh xabbuh closed this as completed Dec 3, 2020
@Xachman
Copy link
Author

Xachman commented Dec 3, 2020

Thank you @xabbuh! Should switching to 5.x-dev give you this update?

@derrabus
Copy link
Member

derrabus commented Dec 3, 2020

5.2-dev should work as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants