Skip to content

[TwigBridge] Symfony 3.1 forward compatibility #17780

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

Merged
merged 1 commit into from
Feb 14, 2016
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 12, 2016

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #17743 (comment)
License MIT
Doc PR

@@ -40,7 +40,13 @@ public function encode($input, $inline = 0, $dumpObjects = false)
}

if (defined('Symfony\Component\Yaml\Yaml::DUMP_OBJECT')) {
$dumpObjects = (int) $dumpObjects;
if (is_bool($dumpObjects)) {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe the ternary operator would be more readable in this case?

$flags = is_bool($dumpObjects) ? Yaml::DUMP_OBJECT : 0;

Copy link
Member

Choose a reason for hiding this comment

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

agreed

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@fabpot
Copy link
Member

fabpot commented Feb 14, 2016

Thank you @xabbuh.

@fabpot fabpot merged commit 2991639 into symfony:2.3 Feb 14, 2016
fabpot added a commit that referenced this pull request Feb 14, 2016
This PR was merged into the 2.3 branch.

Discussion
----------

[TwigBridge] Symfony 3.1 forward compatibility

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17743 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

2991639 [TwigBridge] Symfony 3.1 forward compatibility
@xabbuh xabbuh deleted the pr-17743 branch February 14, 2016 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants