-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Yaml][Parser] Mapping misdetected in quote #16562
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
Labels
Comments
I just tried your issue and I can successfully reproduce it on 2.8.0-BETA1. It works fine in 2.6.12 and in 2.7.7. Seems to be introduced in 8416f7ba519fa3bbd8c1ffc0000c1a7c5730efba. |
Status: Reviewed see #16745 |
fabpot
added a commit
that referenced
this issue
Nov 29, 2015
This PR was merged into the 2.8 branch. Discussion ---------- [Yaml] look for colon in parsed inline string | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16562 | License | MIT | Doc PR | Looking for a colon in an unquoted mapping value can lead to falsely reported parse errors (e.g. when a comment after the mapping value contains a colon). Commits ------- 2127058 [Yaml] look for colon in parsed inline string
This is a particularly difficult thing to search your Yaml files for. 😧 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: symfony/yaml v2.8.0-BETA1
The following snippet of YAML is causing the parser to misdetect the comment
# Note:
as a mapping.The error thrown in PHPUnit is:
Changing the
attrib:
line above to below suppresses the deprecation warningThe text was updated successfully, but these errors were encountered: