diff --git a/.dockerignore b/.dockerignore index 707573097..efc77f28d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -47,6 +47,7 @@ Homestead.yaml /storage/** !/storage/**/ +/storage/rector/** .git .gitattributes diff --git a/.gitignore b/.gitignore index c3e42c879..dfa6eeb35 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,4 @@ Homestead.yaml !/storage/app !/storage/framework !/storage/logs +!/storage/rector diff --git a/rector.php b/rector.php index 6bb3e8dd5..09e7004fc 100644 --- a/rector.php +++ b/rector.php @@ -2,6 +2,7 @@ declare(strict_types=1); +use Rector\Caching\ValueObject\Storage\FileCacheStorage; use Rector\Config\RectorConfig; use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector; use RectorLaravel\Rector\ArrayDimFetch\EnvVariableToEnvHelperRector; @@ -77,6 +78,7 @@ return RectorConfig::configure() __DIR__.'/bootstrap/cache', AddOverrideAttributeToOverriddenMethodsRector::class, ]) + ->withCache(__DIR__.'/storage/rector', FileCacheStorage::class) ->withPhpSets() ->withPreparedSets( deadCode: true, diff --git a/storage/rector/.gitignore b/storage/rector/.gitignore new file mode 100644 index 000000000..d6b7ef32c --- /dev/null +++ b/storage/rector/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore