Problem/Motivation
symfony/yaml 2.8 is deprecating some syntax it previously supported that doesn't comply with the yaml spec - http://symfony.com/blog/new-in-symfony-2-8-yaml-deprecations?utm_source=...
Proposed resolution
Audit our yaml files to find instance that use deprecated syntax
Remaining tasks
Audit yaml files
Fix deprecated syntax if found
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2679883-8.patch | 605 bytes | lokapujya |
Comments
Comment #3
luukyb commentedI tried to scan core (only yaml files inside core/) today and I could not find any YAML deprecations from http://symfony.com/blog/new-in-symfony-2-8-yaml-deprecations
Comment #4
imrancluster commented@Luukyb
Me too :)
Comment #5
dawehnerAt least the case
should be triggered by
@neclimdul's YML testing.Comment #6
lokapujyacore/modules/system/tests/modules/theme_test/theme_test.services.yml
You must have noticed this one. Do the arguments in this file purposely not have quotes?
Comment #7
dawehner@lokapujya You are right! Feel free to upload a patch.
Comment #8
lokapujyaArguments with certain leading special characters need quotes. Even though this is in a test.
Comment #9
thhafner commentedLooks good to me.
Comment #10
dawehnerI just did a grep and this seemed to be the only place in core with that combination
Comment #11
johnrosswvsu commentedI can confirm that there are no other instances of arguments beginning with special characters in YML files. The patch is good on my end.
Comment #12
imrancluster commentedI have test again using my phpStorm editor. There is no deprecated syntax like this issue in core. The patch also worked perfectly for me.
Comment #13
alexpottCommitted 8023d8c and pushed to 8.0.x, 8.1.x and 8.2.x. Thanks!
Comment #17
neclimdulYou guys may be interested in the issue that triggered that change in Symfony and has tests that catch these sorts of invalid YAML in testbot. #1920902: Add a Drupal Yaml wrapper so we can default to PECL Yaml component if it is available
Comment #18
lokapujyaHow did this issue cause a conflict? and why if it's catching invalid YAML, why wasn't that issue failing?
NEVERMIND: I see that the previous patch has a similar fix for this same issue.
Comment #19
neclimdulYeah, exactly that. It was triggering errors which is why it had the same fix which conflicted. Sorry if it wasn't clear.