From 20cc06fdd932eca8b00b5416b3bb87068b22393a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 16:48:48 +0300 Subject: [PATCH] Update rector/rector requirement from ^0.17.0 to ^0.18.3 (#93) Co-authored-by: Sergei Predvoditelev --- .github/workflows/rector.yml | 2 ++ composer.json | 5 +++-- rector.php | 7 +++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index adacd73..b5a5649 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -14,6 +14,8 @@ name: rector jobs: rector: uses: yiisoft/actions/.github/workflows/rector.yml@master + secrets: + token: ${{ secrets.YIISOFT_GITHUB_TOKEN }} with: os: >- ['ubuntu-latest'] diff --git a/composer.json b/composer.json index 9017247..f2e8e82 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "maglnet/composer-require-checker": "^4.3", "nyholm/psr7": "^1.5", "phpunit/phpunit": "^9.5", - "rector/rector": "^0.17.0", + "rector/rector": "^0.18.3", "roave/infection-static-analysis-plugin": "^1.25", "spatie/phpunit-watcher": "^1.23", "vimeo/psalm": "^4.30|^5.6", @@ -64,7 +64,8 @@ "sort-packages": true, "allow-plugins": { "infection/extension-installer": true, - "composer/package-versions-deprecated": true + "composer/package-versions-deprecated": true, + "yiisoft/config": false } }, "scripts": { diff --git a/rector.php b/rector.php index 63713ce..c80d86e 100644 --- a/rector.php +++ b/rector.php @@ -4,6 +4,8 @@ use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; use Rector\Config\RectorConfig; +use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector; +use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; use Rector\Set\ValueObject\LevelSetList; return static function (RectorConfig $rectorConfig): void { @@ -19,4 +21,9 @@ $rectorConfig->sets([ LevelSetList::UP_TO_PHP_80, ]); + + $rectorConfig->skip([ + ClosureToArrowFunctionRector::class, + JsonThrowOnErrorRector::class, + ]); };