Skip to content

Commit

Permalink
Merge branch '2.3' into 2.7
Browse files Browse the repository at this point in the history
* 2.3:
  [TwigBridge] forward compatibility with Yaml 3.1
  • Loading branch information
nicolas-grekas committed Feb 5, 2016
2 parents 927fe13 + 01b562b commit ae0b5fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/YamlExtension.php
Expand Up @@ -39,6 +39,10 @@ public function encode($input, $inline = 0, $dumpObjects = false)
$dumper = new YamlDumper();
}

if (defined('Symfony\Component\Yaml\Yaml::DUMP_OBJECT')) {
$dumpObjects = (int) $dumpObjects;
}

return $dumper->dump($input, $inline, 0, false, $dumpObjects);
}

Expand Down

0 comments on commit ae0b5fa

Please sign in to comment.