From ed3d907941776b9cfa3e6d930bb75354af64ab23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Thu, 13 Feb 2025 23:52:05 +0100 Subject: [PATCH] chore(deps): Update rector --- .github/workflows/cs.yaml | 4 +++ rector.php | 5 ---- vendor-bin/rector/composer.json | 7 ++++- vendor-bin/rector/composer.lock | 46 +++++++++++++++++---------------- 4 files changed, 34 insertions(+), 28 deletions(-) diff --git a/.github/workflows/cs.yaml b/.github/workflows/cs.yaml index 0e7025a..ca8c575 100644 --- a/.github/workflows/cs.yaml +++ b/.github/workflows/cs.yaml @@ -22,6 +22,10 @@ jobs: fail-fast: true matrix: php: + # Should be the lowest supported PHP version. + # To also adjust the PHP version in the following files: + # - vendor-bin/php-cs-fixer/composer.json + # - vendor-bin/rector/composer.json - "8.1" steps: diff --git a/rector.php b/rector.php index 4251731..df6532a 100644 --- a/rector.php +++ b/rector.php @@ -35,7 +35,6 @@ declare(strict_types=1); use Rector\Config\RectorConfig; -use Rector\Php71\Rector\FuncCall\CountOnNullRector; use Rector\Set\ValueObject\LevelSetList; return static function (RectorConfig $rectorConfig): void { @@ -47,8 +46,4 @@ $rectorConfig->sets([ LevelSetList::UP_TO_PHP_81, ]); - - $rectorConfig->skip([ - CountOnNullRector::class, - ]); }; diff --git a/vendor-bin/rector/composer.json b/vendor-bin/rector/composer.json index 798d94e..d035727 100644 --- a/vendor-bin/rector/composer.json +++ b/vendor-bin/rector/composer.json @@ -1,5 +1,10 @@ { "require-dev": { - "rector/rector": "^0.18.4" + "rector/rector": "^2.0" + }, + "config": { + "platform": { + "php": "8.1" + } } } diff --git a/vendor-bin/rector/composer.lock b/vendor-bin/rector/composer.lock index c1fd60e..37f83a0 100644 --- a/vendor-bin/rector/composer.lock +++ b/vendor-bin/rector/composer.lock @@ -4,25 +4,25 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "200d42a56afe35a22360f075b3daada8", + "content-hash": "071ff7285accc942e8984217245e85d7", "packages": [], "packages-dev": [ { "name": "phpstan/phpstan", - "version": "1.10.36", + "version": "2.1.5", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "ffa3089511121a672e62969404e4fddc753f9b15" + "reference": "451b17f9665481ee502adc39be987cb71067ece2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ffa3089511121a672e62969404e4fddc753f9b15", - "reference": "ffa3089511121a672e62969404e4fddc753f9b15", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/451b17f9665481ee502adc39be987cb71067ece2", + "reference": "451b17f9665481ee502adc39be987cb71067ece2", "shasum": "" }, "require": { - "php": "^7.2|^8.0" + "php": "^7.4|^8.0" }, "conflict": { "phpstan/phpstan-shim": "*" @@ -61,31 +61,27 @@ { "url": "https://github.com/phpstan", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", - "type": "tidelift" } ], - "time": "2023-09-29T14:07:45+00:00" + "time": "2025-02-13T12:49:56+00:00" }, { "name": "rector/rector", - "version": "0.18.4", + "version": "2.0.9", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "d99a91176b7eb7f2b6d509a6486b3661c6dfd370" + "reference": "4393230e478c0006795770fe74c223b5c64ed68c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/d99a91176b7eb7f2b6d509a6486b3661c6dfd370", - "reference": "d99a91176b7eb7f2b6d509a6486b3661c6dfd370", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/4393230e478c0006795770fe74c223b5c64ed68c", + "reference": "4393230e478c0006795770fe74c223b5c64ed68c", "shasum": "" }, "require": { - "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.10.31" + "php": "^7.4|^8.0", + "phpstan/phpstan": "^2.1.3" }, "conflict": { "rector/rector-doctrine": "*", @@ -93,6 +89,9 @@ "rector/rector-phpunit": "*", "rector/rector-symfony": "*" }, + "suggest": { + "ext-dom": "To manipulate phpunit.xml via the custom-rule command" + }, "bin": [ "bin/rector" ], @@ -115,7 +114,7 @@ ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/0.18.4" + "source": "https://github.com/rectorphp/rector/tree/2.0.9" }, "funding": [ { @@ -123,15 +122,18 @@ "type": "github" } ], - "time": "2023-09-25T17:07:54+00:00" + "time": "2025-02-10T08:14:01+00:00" } ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [], + "platform": {}, + "platform-dev": {}, + "platform-overrides": { + "php": "8.1" + }, "plugin-api-version": "2.6.0" }