Sfoglia il codice sorgente

merged branch ruian/issue-3992 (PR #4006)

Commits
-------

45ada32 Add Support for boolean as to string into yaml extension

Discussion
----------

Add Support for boolean as to string into yaml extension

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: 3992
Todo:
- Maybe use only boolean checker instead of YamlDumper->dump
Fabien Potencier 13 anni fa
parent
commit
3c62ebf52e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Symfony/Bridge/Twig/Extension/YamlExtension.php

+ 1 - 1
src/Symfony/Bridge/Twig/Extension/YamlExtension.php

@@ -52,7 +52,7 @@ class YamlExtension extends \Twig_Extension
             return '%'.gettype($value).'% '.$this->encode($value);
         }
 
-        return $value;
+        return $this->encode($value);
     }
 
     /**