From 387f6a64379ef3d18e1311f2c51f97a5a0a01b97 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 28 Jul 2026 17:13:48 +0700 Subject: [PATCH] Bump Rector to ~2.5.8 and skip new rules --- composer.json | 2 +- rector.php | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 28d310719..f8384231a 100644 --- a/composer.json +++ b/composer.json @@ -142,7 +142,7 @@ "mockery/mockery": "^1.6.12", "phpunit/phpunit": "^10.5.41", "ramsey/collection": "^1.3", - "rector/rector": "~2.5.7", + "rector/rector": "~2.5.8", "spiral/code-style": "^2.2.2", "spiral/nyholm-bridge": "^1.3", "spiral/testing": "^2.12", diff --git a/rector.php b/rector.php index d9638397c..643a70905 100644 --- a/rector.php +++ b/rector.php @@ -95,10 +95,8 @@ \Rector\PHPUnit\CodeQuality\Rector\MethodCall\WithCallbackIdenticalToStandaloneAssertsRector::class, \Rector\PHPUnit\CodeQuality\Rector\MethodCall\SimplerWithIsInstanceOfRector::class, \Rector\DeadCode\Rector\ClassMethod\RemoveUnusedConstructorParamRector::class, - - \Rector\DeadCode\Rector\ClassMethod\RemoveReturnTagIncompatibleWithNativeTypeRector::class => [ - __DIR__ . '/src/Router/src/Traits/VerbsTrait.php', - ], + \Rector\DeadCode\Rector\Property\RemoveDefaultValueFromAssignedPropertyRector::class, + \Rector\DeadCode\Rector\StmtsAwareInterface\RemoveDeadInstanceOfAssertRector::class, ]) ->withPhpSets(php81: true) ->withPreparedSets(deadCode: true, phpunitCodeQuality: true)