Skip to content

Commit

Permalink
chore: add rector-laravel
Browse files Browse the repository at this point in the history
Only using up_to_laravel_10 for now. Not running rector to see if CI cache works
  • Loading branch information
daveroverts committed Feb 26, 2025
1 parent 4d6cfa7 commit 2015bef
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"barryvdh/laravel-debugbar": "^3.6",
"barryvdh/laravel-ide-helper": "^3.0",
"beyondcode/laravel-query-detector": "^1.7",
"driftingly/rector-laravel": "^1.2",
"fakerphp/faker": "^1.18",
"larastan/larastan": "^2.0",
"laravel/pint": "^1.10",
Expand Down
37 changes: 36 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use RectorLaravel\Set\LaravelLevelSetList;

return RectorConfig::configure()
->withPaths([
Expand All @@ -14,4 +15,5 @@
__DIR__ . '/tests',
])
->withPhpSets()
->withTypeCoverageLevel(0);
->withTypeCoverageLevel(0)
->withSets([LaravelLevelSetList::UP_TO_LARAVEL_100]);

0 comments on commit 2015bef

Please sign in to comment.