-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Yaml] Improve newline handling in folded scalar blocks #15482
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
Conversation
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #15477 |
License | MIT |
Doc PR | N/A |
@teohhanhui I'm glad that after the discussion in #15477 issue you have created the pull request according to the format required by Symfony. We have a bot called "fabbot" which reviews the submitted pull requests for basic errors. Although the bot is reporting an error for this pull request, we can safely ignore it because it's related to some feature needed for the unit tests. So everything is ready to be reviewed by our team and ultimately merge it in Symfony. Let's wait for the revision. Thanks! |
@javiereguiluz No worries. Actually, I'm not new to Symfony and the contributing process. |
3fc7774
to
5b9a602
Compare
@javiereguiluz we should make fabbot ignore the Yaml test fixtures to avoid reporting this issue here (or we should refactor the way we pass Yaml test fixtures) |
@@ -20,7 +20,7 @@ | |||
*/ | |||
class Parser | |||
{ | |||
const FOLDED_SCALAR_PATTERN = '(?P<separator>\||>)(?P<modifiers>\+|\-|\d+|\+\d+|\-\d+|\d+\+|\d+\-)?(?P<comments> +#.*)?'; | |||
const BLOCK_SCALAR_PATTERN = '(?P<separator>\||>)(?P<modifiers>\+|\-|\d+|\+\d+|\-\d+|\d+\+|\d+\-)?(?P<comments> +#.*)?'; |
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.
renaming a constant is a BC break
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.
What do you suggest then? Can I recreate it like this?
const FOLDED_SCALAR_PATTERN = self::BLOCK_SCALAR_PATTERN;
5b9a602
to
3070586
Compare
3070586
to
73366d5
Compare
PHP7 build is failing on Travis... Does it have anything to do with my code? |
Tests for the HttpFoundation fail, so it doesn't seem to be an issue related to your PR @teohhanhui. |
Are we good on this? |
ping @stof |
Any changes required before this will get merged? |
👍 |
1 similar comment
👍 |
Thank you @teohhanhui. |
…eohhanhui) This PR was merged into the 2.3 branch. Discussion ---------- [Yaml] Improve newline handling in folded scalar blocks | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #15477 | License | MIT | Doc PR | N/A Commits ------- 73366d5 [Yaml] Improve newline handling in folded scalar blocks