From 21c6dca1548908f9df81cd403d45827016506df3 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 22 Jul 2026 07:25:20 +0700 Subject: [PATCH] Bump ECS to ^13.2.13 and skip */SourcePhp81/* from apply --- bin/rector.php | 2 -- composer.json | 2 +- ecs.php | 1 + src/Autoloading/BootstrapFilesIncluder.php | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/rector.php b/bin/rector.php index d42541061cd..07eea9a09cc 100755 --- a/bin/rector.php +++ b/bin/rector.php @@ -6,12 +6,10 @@ use Rector\Bootstrap\AutoloadFileParameterResolver; use Rector\Bootstrap\RectorConfigsResolver; use Rector\ChangesReporting\Output\JsonOutputFormatter; -use Rector\Config\RectorConfig; use Rector\Configuration\Option; use Rector\Console\Style\SymfonyStyleFactory; use Rector\DependencyInjection\LazyContainerFactory; use Rector\DependencyInjection\RectorContainerFactory; -use Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory; use Rector\Util\Reflection\PrivatesAccessor; use Symfony\Component\Console\Application; use Symfony\Component\Console\Command\Command; diff --git a/composer.json b/composer.json index ed7fce6bd1f..07fd8a1b637 100644 --- a/composer.json +++ b/composer.json @@ -55,7 +55,7 @@ "rector/swiss-knife": "^2.4.1", "rector/type-perfect": "^2.1.2", "shipmonk/composer-dependency-analyser": "^1.8", - "symplify/easy-coding-standard": "^13.2", + "symplify/easy-coding-standard": "^13.2.13", "symplify/phpstan-extensions": "^12.0.2", "symplify/phpstan-rules": "^14.12", "symplify/vendor-patches": "^11.5", diff --git a/ecs.php b/ecs.php index 3ebd31e9a1b..45bd97c9c41 100644 --- a/ecs.php +++ b/ecs.php @@ -22,6 +22,7 @@ ]) ->withSkip([ '*/Source/*', + '*/SourcePhp81/*', '*/Fixture/*', '*/Expected/*', diff --git a/src/Autoloading/BootstrapFilesIncluder.php b/src/Autoloading/BootstrapFilesIncluder.php index 549eda3617b..9a3b81de87b 100644 --- a/src/Autoloading/BootstrapFilesIncluder.php +++ b/src/Autoloading/BootstrapFilesIncluder.php @@ -4,6 +4,7 @@ namespace Rector\Autoloading; +use PHPStan\DependencyInjection\Container; use Rector\Configuration\Option; use Rector\Configuration\Parameter\SimpleParameterProvider; use Rector\Exception\ShouldNotHappenException; @@ -11,7 +12,6 @@ use RecursiveIteratorIterator; use SplFileInfo; use Webmozart\Assert\Assert; -use PHPStan\DependencyInjection\Container; /** * @see \Rector\Tests\Autoloading\BootstrapFilesIncluderTest