From a0ec0fe40240f8737bae4692b618c534bb4cd2a4 Mon Sep 17 00:00:00 2001 From: Lee Rowlands Date: Tue, 6 Jan 2015 19:37:09 +1000 Subject: [PATCH] Add comment as requested --- src/Symfony/Component/Yaml/Escaper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Component/Yaml/Escaper.php b/src/Symfony/Component/Yaml/Escaper.php index e3039f57e9..be846e50c7 100644 --- a/src/Symfony/Component/Yaml/Escaper.php +++ b/src/Symfony/Component/Yaml/Escaper.php @@ -108,6 +108,8 @@ class Escaper */ private static function isValueRequiresSingleQuoting($value) { + // Note that whilst 'y' and 'n' are not supported as valid Booleans, + // they are escaped here for interoperability. return in_array(strtolower($value), array('null', '~', 'true', 'false', 'y', 'n', 'yes', 'no', 'on', 'off')); } }