From 653cabe1b34aad8c7ef53359e79523b9758e9d2b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 09:02:22 +0000 Subject: [PATCH 1/6] chore(deps): update rector/rector requirement || ^0.19.0 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/0.18.3...0.19.0) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5b10c76..bf3cebf 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "phpunit/phpunit": "^9.3", "roave/security-advisories": "dev-latest", "vimeo/psalm": "^5.0", - "rector/rector": "^0.18.3" + "rector/rector": "^0.18.3 || ^0.19.0" }, "require-dev": { "codeigniter4/framework": "^4.1", From ac038015081b97109c5502a5d03ab86bedcc09b5 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 16:39:52 +0700 Subject: [PATCH 2/6] Update Rector\Core sub namespace to Rector --- src/Template/rector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/rector.php b/src/Template/rector.php index e28ac29..84a10cb 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -21,7 +21,7 @@ use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; use Rector\Config\RectorConfig; -use Rector\Core\ValueObject\PhpVersion; +use Rector\ValueObject\PhpVersion; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; From 7a180707fde3c1050d30499d4a3577e7fe38c4ce Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 16:40:11 +0700 Subject: [PATCH 3/6] Update Rector\Core sub namespace to Rector --- rector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rector.php b/rector.php index d4cdfc2..d5ac09b 100644 --- a/rector.php +++ b/rector.php @@ -21,7 +21,7 @@ use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; use Rector\Config\RectorConfig; -use Rector\Core\ValueObject\PhpVersion; +use Rector\ValueObject\PhpVersion; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; From 8c2dd2cd4ac0a298d88ccfc2964bacb804019790 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 16:40:48 +0700 Subject: [PATCH 4/6] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bf3cebf..dc87da6 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "phpunit/phpunit": "^9.3", "roave/security-advisories": "dev-latest", "vimeo/psalm": "^5.0", - "rector/rector": "^0.18.3 || ^0.19.0" + "rector/rector": "^0.19.0" }, "require-dev": { "codeigniter4/framework": "^4.1", From 3d8fe4c8d677ff707497632a1892372babd519ae Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 16:42:22 +0700 Subject: [PATCH 5/6] cs fix --- rector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rector.php b/rector.php index d5ac09b..5c456ad 100644 --- a/rector.php +++ b/rector.php @@ -21,7 +21,6 @@ use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; use Rector\Config\RectorConfig; -use Rector\ValueObject\PhpVersion; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; @@ -39,6 +38,7 @@ use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; +use Rector\ValueObject\PhpVersion; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ From c10c6a18b3263c6439852ae81f09af3328907b8a Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 16:42:46 +0700 Subject: [PATCH 6/6] cs fix --- src/Template/rector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/rector.php b/src/Template/rector.php index 84a10cb..62e0146 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -21,7 +21,6 @@ use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; use Rector\Config\RectorConfig; -use Rector\ValueObject\PhpVersion; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; @@ -39,6 +38,7 @@ use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; +use Rector\ValueObject\PhpVersion; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([