-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Yaml parser regression with comments and non-strings #25787
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
Conversation
alexpott
commented
Jan 13, 2018
•
edited
Loading
edited
Q | A |
---|---|
Branch? | 3.3 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | no |
Fixed tickets | #25786 |
License | MIT |
Doc PR | symfony/symfony-docs#... |
// followed by a comment causes us to try to parse | ||
// the value as a multi-line string. In this | ||
// instance, return the empty array | ||
if ([] === $parsedLine) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not work. If I change the {} to 1.1 ie. float then we get the parse exception.
f71571d
to
4f0c963
Compare
I've just added a new test The following yaml fails in 3.3 / 3.4 at the moment: test:
You can have things that don't look like strings here
true
yes you can At the moment this produces an exception because the |
moving to the 3.4 milestone as the last bugfix release for 3.3 was published today |
Thank you @alexpott. |
…pott) This PR was squashed before being merged into the 3.4 branch (closes #25787). Discussion ---------- Yaml parser regression with comments and non-strings | Q | A | ------------- | --- | Branch? | 3.3 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | no | Fixed tickets | #25786 | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> <!-- - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. - Replace this comment by a description of what your PR is solving. --> Commits ------- a7e2a49 Yaml parser regression with comments and non-strings