Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Yaml] Add theYaml::DUMP_FORCE_DOUBLE_QUOTES_ON_VALUES
flag to enforce double quotes around string values#59880
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Build failures unrelated. |
alexandre-daubois left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
Yaml also supports quoting keys. Maybe the constant name should reflect that only values are actually quoted, not keys?
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Yaml::DUMP_FORCE_QUOTES
flagYaml::DUMP_FORCE_DOUBLE_QUOTES_ON_VALUES
flag to enforce double quotes around string valuesa3950ea
to4c68909
CompareFixed and squashed. |
Uh oh!
There was an error while loading.Please reload this page.
…orce double quotes around string values
4c68909
to1c06770
CompareThank you@dkarlovi. |
3d4e0d6
intosymfony:7.3Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
In some scenarios, quoting even safe values is encouraged by various inspectors, for example PHPStorm inspectors will mark it with a warning when used in Kubernetes
ConfigMap
dump.This option allows forcing the quotes even when technically not required, see#59680 for an example.