Skip to content

Commit 0f34128

Browse files
committed
Updated Rector to commit 01a643161b1795bd9360df9814a8ea10a2089e8b
rectorphp/rector-src@01a6431 Fix typo namespace Sourde -> Source in rules-tests/TypeDeclarationDocblocks (#7983)
1 parent 313e715 commit 0f34128

5 files changed

Lines changed: 20 additions & 18 deletions

File tree

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '6d8bee44674a5ee690b2e3b4e612ebbf6f58b03d';
22+
public const PACKAGE_VERSION = '01a643161b1795bd9360df9814a8ea10a2089e8b';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-05-04 23:43:35';
27+
public const RELEASE_DATE = '2026-05-06 21:56:12';
2828
/**
2929
* @var int
3030
*/

vendor/composer/installed.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3083,17 +3083,17 @@
30833083
},
30843084
{
30853085
"name": "symfony\/yaml",
3086-
"version": "v7.4.8",
3087-
"version_normalized": "7.4.8.0",
3086+
"version": "v7.4.10",
3087+
"version_normalized": "7.4.10.0",
30883088
"source": {
30893089
"type": "git",
30903090
"url": "https:\/\/github.com\/symfony\/yaml.git",
3091-
"reference": "c58fdf7b3d6c2995368264c49e4e8b05bcff2883"
3091+
"reference": "c660d6538545a3e8e65a5621ee3d7a6d352892c7"
30923092
},
30933093
"dist": {
30943094
"type": "zip",
3095-
"url": "https:\/\/api.github.com\/repos\/symfony\/yaml\/zipball\/c58fdf7b3d6c2995368264c49e4e8b05bcff2883",
3096-
"reference": "c58fdf7b3d6c2995368264c49e4e8b05bcff2883",
3095+
"url": "https:\/\/api.github.com\/repos\/symfony\/yaml\/zipball\/c660d6538545a3e8e65a5621ee3d7a6d352892c7",
3096+
"reference": "c660d6538545a3e8e65a5621ee3d7a6d352892c7",
30973097
"shasum": ""
30983098
},
30993099
"require": {
@@ -3107,7 +3107,7 @@
31073107
"require-dev": {
31083108
"symfony\/console": "^6.4|^7.0|^8.0"
31093109
},
3110-
"time": "2026-03-24T13:12:05+00:00",
3110+
"time": "2026-05-05T08:01:55+00:00",
31113111
"bin": [
31123112
"Resources\/bin\/yaml-lint"
31133113
],
@@ -3138,7 +3138,7 @@
31383138
"description": "Loads and dumps YAML files",
31393139
"homepage": "https:\/\/symfony.com",
31403140
"support": {
3141-
"source": "https:\/\/github.com\/symfony\/yaml\/tree\/v7.4.8"
3141+
"source": "https:\/\/github.com\/symfony\/yaml\/tree\/v7.4.10"
31423142
},
31433143
"funding": [
31443144
{

vendor/composer/installed.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

vendor/symfony/yaml/Command/LintCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private function displayTxt(SymfonyStyle $io, array $filesInfo, bool $errorAsGit
168168
private function displayJson(SymfonyStyle $io, array $filesInfo): int
169169
{
170170
$errors = 0;
171-
array_walk($filesInfo, function (&$v) use (&$errors) {
171+
array_walk($filesInfo, static function (&$v) use (&$errors) {
172172
$v['file'] = (string) $v['file'];
173173
if (!$v['valid']) {
174174
++$errors;
@@ -199,7 +199,7 @@ private function getParser(): Parser
199199
}
200200
private function getDirectoryIterator(string $directory): iterable
201201
{
202-
$default = fn($directory) => new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory, \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS), \RecursiveIteratorIterator::LEAVES_ONLY);
202+
$default = static fn($directory) => new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory, \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS), \RecursiveIteratorIterator::LEAVES_ONLY);
203203
if (null !== $this->directoryIteratorProvider) {
204204
return ($this->directoryIteratorProvider)($directory, $default);
205205
}

vendor/symfony/yaml/Inline.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ private static function parseSequence(string $sequence, int $flags, int &$i = 0,
344344
$value = self::parseMapping($sequence, $flags, $i, $references);
345345
break;
346346
default:
347+
$hasAnchorAtStart = null === $tag && isset($sequence[$i]) && '&' === $sequence[$i];
347348
$value = self::parseScalar($sequence, $flags, [',', ']'], $i, null === $tag, $references, $isQuoted);
348349
// the value can be an array if a reference has been resolved to an array var
349350
if (\is_string($value) && !$isQuoted && strpos($value, ': ') !== \false) {
@@ -374,9 +375,9 @@ private static function parseSequence(string $sequence, int $flags, int &$i = 0,
374375
throw $mappingException;
375376
}
376377
}
377-
if (!$isQuoted && \is_string($value) && '' !== $value && '&' === $value[0] && Parser::preg_match(Parser::REFERENCE_PATTERN, $value, $matches)) {
378-
$references[$matches['ref']] = $matches['value'];
379-
$value = $matches['value'];
378+
if ($hasAnchorAtStart && !$isQuoted && \is_string($value) && '' !== $value && '&' === $value[0] && Parser::preg_match(Parser::REFERENCE_PATTERN, $value, $matches)) {
379+
$value = '' === $matches['value'] ? null : $matches['value'];
380+
$references[$matches['ref']] = $value;
380381
}
381382
--$i;
382383
}
@@ -489,6 +490,7 @@ private static function parseMapping(string $mapping, int $flags, int &$i = 0, a
489490
}
490491
break;
491492
default:
493+
$hasAnchorAtStart = null === $tag && isset($mapping[$i]) && '&' === $mapping[$i];
492494
$value = self::parseScalar($mapping, $flags, [',', '}', "\n"], $i, null === $tag, $references, $isValueQuoted);
493495
// Spec: Keys MUST be unique; first one wins.
494496
// Parser cannot abort this mapping earlier, since lines
@@ -497,9 +499,9 @@ private static function parseMapping(string $mapping, int $flags, int &$i = 0, a
497499
if ('<<' === $key) {
498500
$output += $value;
499501
} elseif ($allowOverwrite || !isset($output[$key])) {
500-
if (!$isValueQuoted && \is_string($value) && '' !== $value && '&' === $value[0] && !self::isBinaryString($value) && Parser::preg_match(Parser::REFERENCE_PATTERN, $value, $matches)) {
501-
$references[$matches['ref']] = $matches['value'];
502-
$value = $matches['value'];
502+
if ($hasAnchorAtStart && !$isValueQuoted && \is_string($value) && '' !== $value && '&' === $value[0] && !self::isBinaryString($value) && Parser::preg_match(Parser::REFERENCE_PATTERN, $value, $matches)) {
503+
$value = '' === $matches['value'] ? null : $matches['value'];
504+
$references[$matches['ref']] = $value;
503505
}
504506
if (null !== $tag) {
505507
$output[$key] = new TaggedValue($tag, $value);

0 commit comments

Comments
 (0)