Add comment as requested

This commit is contained in:
Lee Rowlands 2015-01-06 19:37:09 +10:00
parent 1e0633edfc
commit a0ec0fe402
1 changed files with 2 additions and 0 deletions

View File

@ -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'));
}
}