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
Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Inline.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -475,6 +475,8 @@ private static function parseMapping($mapping, $flags, &$i = 0, $references = ar
475
475
// are processed sequentially.
476
476
if (!isset($output[$key])) {
477
477
$output[$key] =$value;
478
+
}else {
479
+
@trigger_error(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicates in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.',$key),E_USER_DEPRECATED);
478
480
}
479
481
$done =true;
480
482
break;
@@ -486,6 +488,8 @@ private static function parseMapping($mapping, $flags, &$i = 0, $references = ar
486
488
// are processed sequentially.
487
489
if (!isset($output[$key])) {
488
490
$output[$key] =$value;
491
+
}else {
492
+
@trigger_error(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicates in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.',$key),E_USER_DEPRECATED);
489
493
}
490
494
$done =true;
491
495
break;
@@ -499,6 +503,8 @@ private static function parseMapping($mapping, $flags, &$i = 0, $references = ar
499
503
// are processed sequentially.
500
504
if (!isset($output[$key])) {
501
505
$output[$key] =$value;
506
+
}else {
507
+
@trigger_error(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicates in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.',$key),E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Parser.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -241,13 +241,17 @@ public function parse($value, $flags = 0)
241
241
// But overwriting is allowed when a merge node is used in current block.
242
242
if ($allowOverwrite || !isset($data[$key])) {
243
243
$data[$key] =null;
244
+
}else {
245
+
@trigger_error(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicates in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.',$key),E_USER_DEPRECATED);
// But overwriting is allowed when a merge node is used in current block.
249
251
if ($allowOverwrite || !isset($data[$key])) {
250
252
$data[$key] =$value;
253
+
}else {
254
+
@trigger_error(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicates in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.',$key),E_USER_DEPRECATED);
251
255
}
252
256
}
253
257
}else {
@@ -256,6 +260,8 @@ public function parse($value, $flags = 0)
256
260
// But overwriting is allowed when a merge node is used in current block.
257
261
if ($allowOverwrite || !isset($data[$key])) {
258
262
$data[$key] =$value;
263
+
}else {
264
+
@trigger_error(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicates in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.',$key),E_USER_DEPRECATED);
ErrorAssert::assertDeprecationsAreTriggered(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicates in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.',$duplicate_key),function ()use ($input) {