Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a0ec0fe

Browse filesBrowse files
committed
Add comment as requested
1 parent 1e0633e commit a0ec0fe
Copy full SHA for a0ec0fe

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎src/Symfony/Component/Yaml/Escaper.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Escaper.php
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.