-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[YAML] Invalid YAML did not throw exception anymore #22967
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
Comments
I think it's ec593b9 fault |
@xabbuh what do you think? Is that actually valid YAML? If so... it seems the multi-line parsing could cause some WTF's (as it's much more likely that this is a mistake) |
Yes, this is broken by the multi-line parsing. But I did not find a way to fix it easily yet. |
maybe @GuilhemN has an idea here? |
That's indeed invalid yaml, keys must be inlined (see http://www.yaml.org/spec/1.2/spec.html#ns-plain(n,c)) |
Oh indeed, @GuilhemN is right here. I didn't intend to change this behaviour when introducing the parsing of multi-line scalars. But as it seems that the YAML we were parsing before was not valid, we can close here now. |
@xabbuh I don't understand you here. It IS invalid. So symfony should throw an exception. It's not the case anymore. |
@lyrixx Oh sorry, I read too quickly. Thanks for reopening. |
Just stumbled upon this issue as I was about to open the same. By using the YAML parser
No exception is thrown. No exception is thrown when the |
…grassiot) This PR was squashed before being merged into the 3.4 branch (closes #26387). Discussion ---------- [Yaml] Fix regression when trying to parse multiline | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22967 | License | MIT | Doc PR | I think this is the lower impacted branch, it fixes a regression added in the last releases campain some days ago. As discused on Slack @xabbuh Commits ------- e787ecf [Yaml] Fix regression when trying to parse multiline
output:
The text was updated successfully, but these errors were encountered: