Skip to content

Commit

Permalink
Merge pull request #2 from larowlan/patch-2
Browse files Browse the repository at this point in the history
Add comment as requested - see comment for stof
  • Loading branch information
petert82 committed Jan 6, 2015
2 parents 1e0633e + a0ec0fe commit afe827a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Symfony/Component/Yaml/Escaper.php
Expand Up @@ -108,6 +108,8 @@ private static function containsCharRequiresSingleQuoting($value)
*/
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'));
}
}

0 comments on commit afe827a

Please sign in to comment.