You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add a set to your config, use `RectorLaravel\Set\LaravelLevelSetList` and pick the constant that matches your target version.
26
+
To automatically apply the correct rules depending on the version of Laravel (or other packages) you are currently on (as detected in the `composer.json`), use the following:
27
+
28
+
```php
29
+
<?php declare(strict_types=1);
30
+
31
+
use Rector\Config\RectorConfig;
32
+
use RectorLaravel\Set\LaravelSetProvider;
33
+
34
+
return RectorConfig::configure()
35
+
->withSetProviders(LaravelSetProvider::class)
36
+
->withComposerBased(laravel: true, /** other options */);
37
+
```
38
+
39
+
### Manual Configuration
40
+
41
+
To manually add a version set to your config, use `RectorLaravel\Set\LaravelLevelSetList` and pick the constant that matches your target version.
27
42
Sets for higher versions include sets for lower versions.
0 commit comments