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

Appearance settings

Commit 01b562b

Browse filesBrowse files
bug #17702 [TwigBridge] forward compatibility with Yaml 3.1 (xabbuh)
This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes #17702). Discussion ---------- [TwigBridge] forward compatibility with Yaml 3.1 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 047c195 [TwigBridge] forward compatibility with Yaml 3.1
2 parents 2573a38 + 047c195 commit 01b562b
Copy full SHA for 01b562b

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎src/Symfony/Bridge/Twig/Extension/YamlExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Extension/YamlExtension.php
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public function encode($input, $inline = 0, $dumpObjects = false)
3939
$dumper = new YamlDumper();
4040
}
4141

42+
if (defined('Symfony\Component\Yaml\Yaml::DUMP_OBJECT')) {
43+
$dumpObjects = (int) $dumpObjects;
44+
}
45+
4246
return $dumper->dump($input, $inline, 0, false, $dumpObjects);
4347
}
4448

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.