Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Yaml] fix multiline block handling#22853

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

Merged
fabpot merged 1 commit intosymfony:3.3fromxabbuh:pr-21114
May 24, 2017
Merged

Conversation

@xabbuh
Copy link
Member

QA
Branch?3.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#21114,#22105 (comment)
LicenseMIT
Doc PR

foreach ($this->linesas$line) {
try {
$parsedLine = Inline::parse($line,$flags,$this->refs);
if (isset($line[0]) &&in_array($line[0],array('"',"'"),true)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

shorter and easier to read imho:
if (isset($line[0]) && ('"' === $line[0] || "'" === $line[0])) {

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👍 with minor comment

@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commita2079d6 intosymfony:3.3May 24, 2017
fabpot added a commit that referenced this pull requestMay 24, 2017
This PR was merged into the 3.3 branch.Discussion----------[Yaml] fix multiline block handling| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#21114,#22105 (comment)| License       | MIT| Doc PR        |Commits-------a2079d6 [Yaml] fix multiline block handling
@xabbuhxabbuh deleted the pr-21114 branchMay 24, 2017 06:32
@fabpotfabpot mentioned this pull requestMay 29, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

4 participants

@xabbuh@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp