From ec2c4c5f23c4f1f0d87e48745b25d1bbabaf1de0 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 26 Oct 2026 22:09:25 +0700 Subject: [PATCH] chore: Bump Rector to 2.8.1 and clean up deprecated rules registration --- composer.json | 2 +- rector.php | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 1ab6a1686f01..78b9895b5723 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "phpunit/phpcov": "^9.0.2 || ^10.0", "phpunit/phpunit": "^10.5.16 || ^11.2", "predis/predis": "^3.0", - "rector/rector": "2.7.0", + "rector/rector": "2.8.1", "shipmonk/phpstan-baseline-per-identifier": "^2.0" }, "replace": { diff --git a/rector.php b/rector.php index 2698aec9f098..5e8f63feab59 100644 --- a/rector.php +++ b/rector.php @@ -39,7 +39,6 @@ use Rector\TypeDeclaration\Rector\Closure\ClosureReturnTypeRector; use Rector\TypeDeclaration\Rector\Function_\AddFunctionVoidReturnTypeWhereNoReturnRector; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; -use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector; use Rector\TypeDeclaration\Rector\StmtsAwareInterface\SafeDeclareStrictTypesRector; use Utils\Rector\PassStrictParameterToFunctionParameterRector; use Utils\Rector\RemoveErrorSuppressInTryCatchStmtsRector; @@ -110,15 +109,6 @@ __DIR__ . '/tests/_support/Entity/CustomUser.php', ], - DeclareStrictTypesRector::class => [ - __DIR__ . '/app', - __DIR__ . '/system/CodeIgniter.php', - __DIR__ . '/system/Config/BaseConfig.php', - __DIR__ . '/system/Test/ControllerTestTrait.php', - __DIR__ . '/system/View/Parser.php', - __DIR__ . '/tests/system/Debug/ExceptionsTest.php', - ], - // use mt_rand instead of random_int on purpose on non-cryptographically random RandomFunctionRector::class, @@ -172,7 +162,6 @@ // auto import fully qualified class names ->withImportNames() ->withRules([ - DeclareStrictTypesRector::class, UnderscoreToCamelCaseVariableNameRector::class, PassStrictParameterToFunctionParameterRector::class, RemoveErrorSuppressInTryCatchStmtsRector::class,