Skip to content

Commit afe827a

Browse files
committed
Merge pull request #2 from larowlan/patch-2
Add comment as requested - see comment for stof
2 parents 1e0633e + a0ec0fe commit afe827a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/Yaml/Escaper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ private static function containsCharRequiresSingleQuoting($value)
108108
*/
109109
private static function isValueRequiresSingleQuoting($value)
110110
{
111+
// Note that whilst 'y' and 'n' are not supported as valid Booleans,
112+
// they are escaped here for interoperability.
111113
return in_array(strtolower($value), array('null', '~', 'true', 'false', 'y', 'n', 'yes', 'no', 'on', 'off'));
112114
}
113115
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy