From 42afdb1a31575bf6191a56b07c2283e37df26331 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 15:10:43 +0000 Subject: [PATCH 1/3] chore(deps-dev): update rector/rector requirement from 0.18.13 to 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.13...0.19.0) --- 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 605cd190e89f..00d4d9275a6a 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "phpunit/phpcov": "^8.2", "phpunit/phpunit": "^9.1", "predis/predis": "^1.1 || ^2.0", - "rector/rector": "0.18.13", + "rector/rector": "0.19.0", "vimeo/psalm": "^5.0" }, "replace": { From 9fef92553244ca892fa60c500be833da8dfd3c6f Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 22:15:52 +0700 Subject: [PATCH 2/3] Fix parallel timeout --- rector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rector.php b/rector.php index 5be63b31e59d..7cf424f73e88 100644 --- a/rector.php +++ b/rector.php @@ -59,7 +59,7 @@ PHPUnitSetList::PHPUNIT_100, ]); - $rectorConfig->parallel(); + $rectorConfig->parallel(120); // paths to refactor; solid alternative to CLI arguments $rectorConfig->paths([__DIR__ . '/app', __DIR__ . '/system', __DIR__ . '/tests', __DIR__ . '/utils']); From d5fb953dd7333624ca8fb33fc1497217ae9dd4c4 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 22:17:42 +0700 Subject: [PATCH 3/3] update Rector\Core subnamespace to Rector --- .../Rector/PassStrictParameterToFunctionParameterRector.php | 2 +- utils/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php | 2 +- utils/Rector/UnderscoreToCamelCaseVariableNameRector.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/Rector/PassStrictParameterToFunctionParameterRector.php b/utils/Rector/PassStrictParameterToFunctionParameterRector.php index c6e92bb9d418..14b1a840e60b 100644 --- a/utils/Rector/PassStrictParameterToFunctionParameterRector.php +++ b/utils/Rector/PassStrictParameterToFunctionParameterRector.php @@ -18,7 +18,7 @@ use PhpParser\Node\Expr\ConstFetch; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Name; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/utils/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php b/utils/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php index 06c8ca39de4d..5bdd8ed8bb7b 100644 --- a/utils/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php +++ b/utils/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php @@ -19,7 +19,7 @@ use PhpParser\Node\Stmt\Function_; use PhpParser\Node\Stmt\TryCatch; use PhpParser\NodeTraverser; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/utils/Rector/UnderscoreToCamelCaseVariableNameRector.php b/utils/Rector/UnderscoreToCamelCaseVariableNameRector.php index 4af0be534e61..23035e7bee46 100644 --- a/utils/Rector/UnderscoreToCamelCaseVariableNameRector.php +++ b/utils/Rector/UnderscoreToCamelCaseVariableNameRector.php @@ -22,9 +22,9 @@ use PhpParser\Node\Stmt\Function_; use PhpParser\Node\Stmt\Namespace_; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; -use Rector\Core\Php\ReservedKeywordAnalyzer; -use Rector\Core\PhpParser\Node\CustomNode\FileWithoutNamespace; -use Rector\Core\Rector\AbstractRector; +use Rector\Php\ReservedKeywordAnalyzer; +use Rector\PhpParser\Node\CustomNode\FileWithoutNamespace; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;