8000 [Yaml] add missing indicator character · symfony/symfony@8725e0b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8725e0b

Browse files< 8000 a class="prc-Button-ButtonBase-c50BI d-flex d-md-none prc-Button-IconButton-szpyj prc-Link-Link-85e08" data-component="IconButton" type="button" href="/symfony/symfony/tree/8725e0b0e186f5bacecf76250f949ede41c17de5" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-describedby=":R7qbab:-loading-announcement" aria-labelledby=":R1qbab:">
committed
[Yaml] add missing indicator character
The comma was mentioned in the deprecation message, though it actually was never checked before in the condition.
1 parent 1678303 commit 8725e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Yaml/Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ private static function parseMapping($mapping, $flags, &$i = 0, $references = ar
463463
break;
464464
}
465465

466-
if (!isset($mapping[$i + 1]) || !in_array($mapping[$i + 1], array(' ', '[', ']', '{', '}'), true)) {
466+
if (!isset($mapping[$i + 1]) || !in_array($mapping[$i + 1], array(' ', ',', '[', ']', '{', '}'), true)) {
467467
@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);
468468
}
469469

0 commit comments

Comments
 (0)
0