From aad4820f9b2ad8bebb321d4e1ea76caf0dfacefe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 15:58:26 +0000 Subject: [PATCH 1/2] chore(deps-dev): update rector/rector requirement from 1.2.9 to 1.2.10 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/1.2.9...1.2.10) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 34178265c11c..af7aa5484c9a 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.9" + "rector/rector": "1.2.10" }, "replace": { "codeigniter4/framework": "self.version" From 862cef65adcd6734e15564fedb1b38154668acb2 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 9 Nov 2024 07:41:48 +0700 Subject: [PATCH 2/2] enable skipped NarrowUnusedSetUpDefinedPropertyRector --- rector.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rector.php b/rector.php index 6a4a37835fc4..be9e45f1e169 100644 --- a/rector.php +++ b/rector.php @@ -43,7 +43,6 @@ 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; @@ -177,9 +176,6 @@ // Unnecessary (string) is inserted NullToStrictStringFuncCallArgRector::class, - - // buggy with default value - NarrowUnusedSetUpDefinedPropertyRector::class, ]) // auto import fully qualified class names ->withImportNames(removeUnusedImports: true)