chore(tooling): add rector caching

This commit is contained in:
peaklabs-dev 2025-12-02 15:05:24 +01:00
parent 1f107efb1f
commit c02affe975
No known key found for this signature in database
4 changed files with 6 additions and 0 deletions

View file

@ -47,6 +47,7 @@ Homestead.yaml
/storage/**
!/storage/**/
/storage/rector/**
.git
.gitattributes

1
.gitignore vendored
View file

@ -51,3 +51,4 @@ Homestead.yaml
!/storage/app
!/storage/framework
!/storage/logs
!/storage/rector

View file

@ -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,

2
storage/rector/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore