You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@trigger_error('Using a colon that is not followed by an indication character (i.e. " ", ",", "[", "]", "{", "}" is deprecated since version 3.2 and will throw a ParseException in 4.0.', E_USER_DEPRECATED);
468
468
}
469
469
@@ -501,6 +501,20 @@ private static function parseMapping($mapping, $flags, &$i = 0, $references = ar
501
501
case':':
502
502
case'':
503
503
break;
504
+
case',':
505
+
case'}':
506
+
// Spec: Keys MUST be unique; first one wins.
507
+
// Parser cannot abort this mapping earlier, since lines
508
+
// are processed sequentially.
509
+
if (!isset($output[$key])) {
510
+
$output[$key] = null;
511
+
} else {
512
+
@trigger_error(sprintf('Duplicate key "%s" detected on line %d whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.', $key, self::$parsedLineNumber + 1), E_USER_DEPRECATED);
0 commit comments