update lock clucknut
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 14s
Build, Push and Deploy / build-and-push (push) Successful in 3m14s
Build, Push and Deploy / deploy-staging (push) Successful in 25s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-18 20:32:18 +07:00
parent 4554035227
commit dcaf267458
3359 changed files with 153185 additions and 205489 deletions

View File

@@ -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
View File