From 77db76e838311bebc5165bb2f9673d42e880be43 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Aug 2023 21:11:51 +0000 Subject: [PATCH 1/2] Update rector/rector requirement from ^0.17 to ^0.18 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.17.0...0.18.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 e72b8f0d..e48f2f7f 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "require-dev": { "maglnet/composer-require-checker": "^4.2", "phpunit/phpunit": "^9.6|^10.0", - "rector/rector": "^0.17", + "rector/rector": "^0.18", "roave/infection-static-analysis-plugin": "^1.16", "spatie/phpunit-watcher": "^1.23", "vimeo/psalm": "^4.3|^5.6", From 282d77187ea8114acadf42fd91497fe3d0c0a057 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Wed, 25 Oct 2023 10:22:48 +0300 Subject: [PATCH 2/2] fix --- rector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rector.php b/rector.php index 20acccd4..c80d86e9 100644 --- a/rector.php +++ b/rector.php @@ -4,7 +4,7 @@ use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; use Rector\Config\RectorConfig; -use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector; +use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector; use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; use Rector\Set\ValueObject\LevelSetList; @@ -24,6 +24,6 @@ $rectorConfig->skip([ ClosureToArrowFunctionRector::class, - AddDefaultValueForUndefinedVariableRector::class, + JsonThrowOnErrorRector::class, ]); };