From eea52f5f2f3f5e247211c5484271e654c3cc324d Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Wed, 14 Feb 2024 21:59:59 +0300 Subject: [PATCH] returned driftingly/rector-laravel --- composer.json | 3 ++- rector.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ca0b6b18a..2d6e4212a 100644 --- a/composer.json +++ b/composer.json @@ -33,11 +33,12 @@ }, "require-dev": { "brianium/paratest": "^7.4", + "driftingly/rector-laravel": "^1.0", "ergebnis/phpstan-rules": "^2.1", "infection/infection": "~0.27", + "larastan/larastan": "^2.8", "laravel/cashier": "^15.0", "nunomaduro/collision": "^8.0", - "larastan/larastan": "^2.8", "orchestra/testbench": "^9.0", "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^10.5", diff --git a/rector.php b/rector.php index e10f29768..6c5c7eebd 100644 --- a/rector.php +++ b/rector.php @@ -5,6 +5,7 @@ use Rector\Config\RectorConfig; use Rector\PHPUnit\Set\PHPUnitSetList; use Rector\Set\ValueObject\SetList; +use RectorLaravel\Set\LaravelLevelSetList; return static function (RectorConfig $config): void { $config->parallel(); @@ -15,6 +16,7 @@ // Define what rule sets will be applied $config->import(PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES); + $config->import(LaravelLevelSetList::UP_TO_LARAVEL_110); $config->import(PHPUnitSetList::PHPUNIT_100); $config->import(SetList::STRICT_BOOLEANS); $config->import(SetList::PRIVATIZATION);