update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
32
vendor/symfony/yaml/Inline.php
vendored
32
vendor/symfony/yaml/Inline.php
vendored
@@ -392,11 +392,33 @@ private static function parseSequence(string $sequence, int $flags, int &$i = 0,
|
||||
// the value can be an array if a reference has been resolved to an array var
|
||||
if (\is_string($value) && !$isQuoted && str_contains($value, ': ')) {
|
||||
// embedded mapping?
|
||||
try {
|
||||
$pos = 0;
|
||||
$value = self::parseMapping('{'.$value.'}', $flags, $pos, $references);
|
||||
} catch (\InvalidArgumentException) {
|
||||
// no, it's not
|
||||
$j = $i;
|
||||
$mappingValue = $value;
|
||||
$mappingException = null;
|
||||
do {
|
||||
try {
|
||||
$pos = 0;
|
||||
$value = self::parseMapping('{'.$mappingValue.'}', $flags, $pos, $references);
|
||||
$i = $j;
|
||||
$mappingException = null;
|
||||
break;
|
||||
} catch (ParseException $exception) {
|
||||
$mappingException = $exception;
|
||||
if ($j >= $len) {
|
||||
break;
|
||||
}
|
||||
|
||||
$mappingValue .= $sequence[$j++];
|
||||
if ($j >= $len) {
|
||||
break;
|
||||
}
|
||||
|
||||
$mappingValue .= self::parseScalar($sequence, $flags, [',', ']'], $j, null === $tag, $references);
|
||||
}
|
||||
} while ($j < $len);
|
||||
|
||||
if ($mappingException) {
|
||||
throw $mappingException;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
0
vendor/symfony/yaml/Resources/bin/yaml-lint
vendored
Normal file → Executable file
0
vendor/symfony/yaml/Resources/bin/yaml-lint
vendored
Normal file → Executable file
Reference in New Issue
Block a user