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
Bug of end of line using Yaml::dump #33464
Comments
Hello, I applied fixed on my test. it's already much better but doesn't solve completely: - !group
admin
- !group
admin2
- !permit
role: !group
admin
privileges:
- read
- create
- update
resource: !policy
root |
After additional checks, it seems that both syntax are valid (not a yaml expert). I feel that it's more human readable in one line for such cases: - !group
admin or - !group admin |
Before the latest release the dumper didn't take the inline argument into account when dumping tagged values. That's the explanation for the difference if I don't miss anything else. |
perfect. #33518 solve issue. Thanks. |
This PR was merged into the 3.4 branch. Discussion ---------- [Yaml] don't dump a scalar tag value on its own line | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | This commit fine tunes the bugfix made in #33377 with the feedback provided in #33464 (comment). Commits ------- a549069 don't dump a scalar tag value on its own line
Symfony version(s) affected: 4.3.4
Description
Following correction of bug #32251 (thanks @nicolas-grekas) there is a problem with yaml::dump function when using Tagged value and inline parameter
How to reproduce
result
expected result
The text was updated successfully, but these errors were encountered: