Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commitf1cb4b5
committed
bug#32767 [Yaml] fix comment in multi line value (soufianZantar)
This PR was merged into the 3.4 branch.Discussion----------[Yaml] fix comment in multi line value| Q | A| ------------- | ---| Branch? | 4.3 and lower <!-- see below -->| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets |#32667 <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | symfony/symfony-docs#... <!-- required for new features --><!--Replace this notice by a short README for your feature/bugfix. This will help peopleunderstand your PR and can be used as a start for the documentation.Additionally (seehttps://symfony.com/roadmap): - Bug fixes must be submitted against the lowest maintained 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 branch 4.4. - Legacy code removals go to the master branch.-->Comments after blank lines are read as value in yaml.````$yaml = <<<YAMLparameters: abc# CommentYAML;var_dump(Symfony\Component\Yaml\Yaml::parse($yaml));````**Result before fix:**```array(1) { ["parameters"]=> string(13) "abc# Comment"}```**Result after fix:**```array(1) { ["parameters"]=> string(3) "abc"}```Commits-------dd945e3 fix(yml): fix comment in milti line value2 files changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
439 | 442 | | |
440 | 443 | | |
441 | 444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2292 | 2292 | | |
2293 | 2293 | | |
2294 | 2294 | | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
2295 | 2307 | | |
2296 | 2308 | | |
2297 | 2309 | | |
| |||
0 commit comments
Comments
(0)