Skip to content

Commit 0ffbde9

Browse files
committed
Updated Rector to commit d1410b95c1d3ddf73d6b065f66fa6ea0327bae1f
rectorphp/rector-src@d1410b9 arrow function scope is opened (#7861)
1 parent 392adf2 commit 0ffbde9

File tree

6 files changed

+24
-23
lines changed

6 files changed

+24
-23
lines changed

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 = '16217b94f187ea28a8c26f90c285e54ad8131ae4';
22+
public const PACKAGE_VERSION = 'd1410b95c1d3ddf73d6b065f66fa6ea0327bae1f';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-01-27 13:55:19';
27+
public const RELEASE_DATE = '2026-01-28 14:26:58';
2828
/**
2929
* @var int
3030
*/

src/PhpParser/Node/BetterNodeFinder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace Rector\PhpParser\Node;
55

66
use PhpParser\Node;
7+
use PhpParser\Node\Expr\ArrowFunction;
78
use PhpParser\Node\Expr\Variable;
89
use PhpParser\Node\Expr\Yield_;
910
use PhpParser\Node\Expr\YieldFrom;
@@ -216,7 +217,7 @@ public function findInstancesOfScoped(array $nodes, $types): array
216217
/** @var T[] $foundNodes */
217218
$foundNodes = [];
218219
$this->simpleCallableNodeTraverser->traverseNodesWithCallable($nodes, static function (Node $subNode) use ($types, &$foundNodes): ?int {
219-
if ($subNode instanceof Class_ || $subNode instanceof FunctionLike && !$subNode instanceof ClassMethod) {
220+
if ($subNode instanceof Class_ || $subNode instanceof FunctionLike && !$subNode instanceof ClassMethod && !$subNode instanceof ArrowFunction) {
220221
return NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
221222
}
222223
foreach ($types as $type) {

vendor/composer/installed.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@
574574
},
575575
{
576576
"name": "illuminate\/contracts",
577-
"version": "v12.48.1",
578-
"version_normalized": "12.48.1.0",
577+
"version": "v12.49.0",
578+
"version_normalized": "12.49.0.0",
579579
"source": {
580580
"type": "git",
581581
"url": "https:\/\/github.com\/illuminate\/contracts.git",
@@ -2258,17 +2258,17 @@
22582258
},
22592259
{
22602260
"name": "symfony\/finder",
2261-
"version": "v6.4.32",
2262-
"version_normalized": "6.4.32.0",
2261+
"version": "v6.4.33",
2262+
"version_normalized": "6.4.33.0",
22632263
"source": {
22642264
"type": "git",
22652265
"url": "https:\/\/github.com\/symfony\/finder.git",
2266-
"reference": "3ec24885c1d9ababbb9c8f63bb42fea3c8c9b6de"
2266+
"reference": "24965ca011dac87431729640feef8bcf7b5523e0"
22672267
},
22682268
"dist": {
22692269
"type": "zip",
2270-
"url": "https:\/\/api.github.com\/repos\/symfony\/finder\/zipball\/3ec24885c1d9ababbb9c8f63bb42fea3c8c9b6de",
2271-
"reference": "3ec24885c1d9ababbb9c8f63bb42fea3c8c9b6de",
2270+
"url": "https:\/\/api.github.com\/repos\/symfony\/finder\/zipball\/24965ca011dac87431729640feef8bcf7b5523e0",
2271+
"reference": "24965ca011dac87431729640feef8bcf7b5523e0",
22722272
"shasum": ""
22732273
},
22742274
"require": {
@@ -2277,7 +2277,7 @@
22772277
"require-dev": {
22782278
"symfony\/filesystem": "^6.0|^7.0"
22792279
},
2280-
"time": "2026-01-10T14:09:00+00:00",
2280+
"time": "2026-01-26T13:03:48+00:00",
22812281
"type": "library",
22822282
"installation-source": "dist",
22832283
"autoload": {
@@ -2305,7 +2305,7 @@
23052305
"description": "Finds files and directories via an intuitive fluent interface",
23062306
"homepage": "https:\/\/symfony.com",
23072307
"support": {
2308-
"source": "https:\/\/github.com\/symfony\/finder\/tree\/v6.4.32"
2308+
"source": "https:\/\/github.com\/symfony\/finder\/tree\/v6.4.33"
23092309
},
23102310
"funding": [
23112311
{
@@ -2842,23 +2842,23 @@
28422842
},
28432843
{
28442844
"name": "symfony\/process",
2845-
"version": "v6.4.32",
2846-
"version_normalized": "6.4.32.0",
2845+
"version": "v6.4.33",
2846+
"version_normalized": "6.4.33.0",
28472847
"source": {
28482848
"type": "git",
28492849
"url": "https:\/\/github.com\/symfony\/process.git",
2850-
"reference": "c593135be689b21e6164b1e8f6f5dbf1506b065c"
2850+
"reference": "c46e854e79b52d07666e43924a20cb6dc546644e"
28512851
},
28522852
"dist": {
28532853
"type": "zip",
2854-
"url": "https:\/\/api.github.com\/repos\/symfony\/process\/zipball\/c593135be689b21e6164b1e8f6f5dbf1506b065c",
2855-
"reference": "c593135be689b21e6164b1e8f6f5dbf1506b065c",
2854+
"url": "https:\/\/api.github.com\/repos\/symfony\/process\/zipball\/c46e854e79b52d07666e43924a20cb6dc546644e",
2855+
"reference": "c46e854e79b52d07666e43924a20cb6dc546644e",
28562856
"shasum": ""
28572857
},
28582858
"require": {
28592859
"php": ">=8.1"
28602860
},
2861-
"time": "2026-01-15T13:23:20+00:00",
2861+
"time": "2026-01-23T16:02:12+00:00",
28622862
"type": "library",
28632863
"installation-source": "dist",
28642864
"autoload": {
@@ -2886,7 +2886,7 @@
28862886
"description": "Executes commands in sub-processes",
28872887
"homepage": "https:\/\/symfony.com",
28882888
"support": {
2889-
"source": "https:\/\/github.com\/symfony\/process\/tree\/v6.4.32"
2889+
"source": "https:\/\/github.com\/symfony\/process\/tree\/v6.4.33"
28902890
},
28912891
"funding": [
28922892
{

vendor/composer/installed.php

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

vendor/symfony/finder/Finder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ public function getIterator(): \Iterator
613613
$iterator->append(new \IteratorIterator(new LazyIterator(fn() => $this->searchInDirectory($dir))));
614614
}
615615
foreach ($this->iterators as $it) {
616-
$iterator->append((static function () use ($it) {
616+
$iterator->append(new \IteratorIterator(new LazyIterator(static function () use ($it) {
617617
foreach ($it as $file) {
618618
if (!$file instanceof \SplFileInfo) {
619619
$file = new \SplFileInfo($file);
@@ -624,7 +624,7 @@ public function getIterator(): \Iterator
624624
}
625625
yield $key => $file;
626626
}
627-
})());
627+
})));
628628
}
629629
}
630630
if ($this->sort || $this->reverseSorting) {

vendor/symfony/process/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ private function escapeArgument(?string $argument): string
13711371
if (strpos($argument, "\x00") !== \false) {
13721372
$argument = str_replace("\x00", '?', $argument);
13731373
}
1374-
if (!preg_match('/[()%!^"<>&|\s]/', $argument)) {
1374+
if (!preg_match('/[()%!^"<>&|\s[\]=;*?\'$]/', $argument)) {
13751375
return $argument;
13761376
}
13771377
$argument = preg_replace('/(\\\\+)$/', '$1$1', $argument);

0 commit comments

Comments
 (0)