Skip to content

Commit cec00f7

Browse files
authored
fix: update LaravelSetList usage to match new package setup (#508)
1 parent 404deb6 commit cec00f7

File tree

3 files changed

+53
-3
lines changed

3 files changed

+53
-3
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"php": "^8.0",
1616
"calebporzio/sushi": "^2.4",
1717
"danharrin/livewire-rate-limiting": "^1.0",
18+
"driftingly/rector-laravel": "^0.14.1",
1819
"elgigi/commonmark-emoji": "^2.0",
1920
"ergebnis/phpstan-rules": "^1.0",
2021
"fakerphp/faker": "^1.20",

composer.lock

Lines changed: 50 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use Rector\Config\RectorConfig;
66
use Rector\Core\Configuration\Option;
77
use Rector\Core\ValueObject\PhpVersion;
8-
use Rector\Laravel\Set\LaravelSetList;
98
use Rector\Set\ValueObject\SetList;
9+
use RectorLaravel\Set\LaravelSetList;
1010

1111
return static function (RectorConfig $rectorConfig): void {
1212
$parameters = $rectorConfig->parameters();
@@ -17,7 +17,7 @@
1717
SetList::PRIVATIZATION,
1818
SetList::EARLY_RETURN,
1919
SetList::CODING_STYLE,
20-
LaravelSetList::LARAVEL_80,
20+
LaravelSetList::LARAVEL_90,
2121
LaravelSetList::LARAVEL_CODE_QUALITY,
2222
LaravelSetList::LARAVEL_ARRAY_STR_FUNCTION_TO_STATIC_CALL,
2323
]);

0 commit comments

Comments
 (0)