Merge pull request #2 from larowlan/patch-2

Add comment as requested - see comment for stof
This commit is contained in:
Peter Thompson 2015-01-06 14:34:58 +01:00
commit afe827ae9c
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'));
}
}