Skip to content

Commit 564ae85

Browse files
Fix multiple CS errors
1 parent 9a80908 commit 564ae85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Parser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private function doParse(string $value, int $flags): mixed
300300
// Spec: Keys MUST be unique; first one wins.
301301
// But overwriting is allowed when a merge node is used in current block.
302302
if ($allowOverwrite || !isset($data[$key])) {
303-
if (!$allowOverwrite && array_key_exists($key, $data)) {
303+
if (!$allowOverwrite && \array_key_exists($key, $data)) {
304304
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);
305305
}
306306

@@ -325,7 +325,7 @@ private function doParse(string $value, int $flags): mixed
325325

326326
$data += $value;
327327
} elseif ($allowOverwrite || !isset($data[$key])) {
328-
if (!$allowOverwrite && array_key_exists($key, $data)) {
328+
if (!$allowOverwrite && \array_key_exists($key, $data)) {
329329
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);
330330
}
331331

@@ -345,7 +345,7 @@ private function doParse(string $value, int $flags): mixed
345345
// Spec: Keys MUST be unique; first one wins.
346346
// But overwriting is allowed when a merge node is used in current block.
347347
if ($allowOverwrite || !isset($data[$key])) {
348-
if (!$allowOverwrite && array_key_exists($key, $data)) {
348+
if (!$allowOverwrite && \array_key_exists($key, $data)) {
349349
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);
350350
}
351351

0 commit comments

Comments
 (0)