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: Parser.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -300,7 +300,7 @@ private function doParse(string $value, int $flags): mixed
300
300
// Spec: Keys MUST be unique; first one wins.
301
301
// But overwriting is allowed when a merge node is used in current block.
302
302
if ($allowOverwrite || !isset($data[$key])) {
303
-
if (!$allowOverwrite && array_key_exists($key, $data)) {
303
+
if (!$allowOverwrite && \array_key_exists($key, $data)) {
304
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);
305
305
}
306
306
@@ -325,7 +325,7 @@ private function doParse(string $value, int $flags): mixed
if (!$allowOverwrite && array_key_exists($key, $data)) {
328
+
if (!$allowOverwrite && \array_key_exists($key, $data)) {
329
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);
330
330
}
331
331
@@ -345,7 +345,7 @@ private function doParse(string $value, int $flags): mixed
345
345
// Spec: Keys MUST be unique; first one wins.
346
346
// But overwriting is allowed when a merge node is used in current block.
347
347
if ($allowOverwrite || !isset($data[$key])) {
348
-
if (!$allowOverwrite && array_key_exists($key, $data)) {
348
+
if (!$allowOverwrite && \array_key_exists($key, $data)) {
349
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);
0 commit comments