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/Parser.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -301,7 +301,7 @@ private function doParse(string $value, int $flags): mixed
301
301
// But overwriting is allowed when a merge node is used in current block.
302
302
if ($allowOverwrite || !isset($data[$key])) {
303
303
if (!$allowOverwrite && \array_key_exists($key, $data)) {
304
-
trigger_deprecation('symfony/yaml', '7.2', 'Duplicate key "%s" detected on line %d whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated and will throw a ParseException in 8.0.', $key, $this->getRealCurrentLineNb() + 1);
if (!$allowOverwrite && \array_key_exists($key, $data)) {
329
-
trigger_deprecation('symfony/yaml', '7.2', 'Duplicate key "%s" detected on line %d whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated and will throw a ParseException in 8.0.', $key, $this->getRealCurrentLineNb() + 1);
@@ -346,7 +346,7 @@ private function doParse(string $value, int $flags): mixed
346
346
// But overwriting is allowed when a merge node is used in current block.
347
347
if ($allowOverwrite || !isset($data[$key])) {
348
348
if (!$allowOverwrite && \array_key_exists($key, $data)) {
349
-
trigger_deprecation('symfony/yaml', '7.2', 'Duplicate key "%s" detected on line %d whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated and will throw a ParseException in 8.0.', $key, $this->getRealCurrentLineNb() + 1);
Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Tests/ParserTest.php
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,6 @@
20
20
21
21
class ParserTest extends TestCase
22
22
{
23
-
use ExpectUserDeprecationMessageTrait;
24
-
25
23
private ?Parser$parser;
26
24
27
25
protectedfunctionsetUp(): void
@@ -1059,12 +1057,9 @@ public static function getParseExceptionOnDuplicateData()
1059
1057
return$tests;
1060
1058
}
1061
1059
1062
-
/**
1063
-
* @group legacy
1064
-
*/
1065
1060
publicfunctiontestNullAsDuplicatedData()
1066
1061
{
1067
-
$this->expectUserDeprecationMessage('Since symfony/yaml 7.2: Duplicate key "child" detected on line 4 whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated and will throw a ParseException in 8.0.');
0 commit comments