diff --git a/composer.json b/composer.json index e6533a6daea1..34178265c11c 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "phpunit/phpcov": "^9.0.2 || ^10.0", "phpunit/phpunit": "^10.5.16 || ^11.2", "predis/predis": "^1.1 || ^2.0", - "rector/rector": "1.2.8" + "rector/rector": "1.2.9" }, "replace": { "codeigniter4/framework": "self.version" diff --git a/rector.php b/rector.php index be9e45f1e169..6a4a37835fc4 100644 --- a/rector.php +++ b/rector.php @@ -43,6 +43,7 @@ use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; use Rector\Php80\Rector\FunctionLike\MixedTypeRector; use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector; +use Rector\PHPUnit\CodeQuality\Rector\Class_\NarrowUnusedSetUpDefinedPropertyRector; use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector; use Rector\PHPUnit\Set\PHPUnitSetList; use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; @@ -176,6 +177,9 @@ // Unnecessary (string) is inserted NullToStrictStringFuncCallArgRector::class, + + // buggy with default value + NarrowUnusedSetUpDefinedPropertyRector::class, ]) // auto import fully qualified class names ->withImportNames(removeUnusedImports: true)