chore: fallback null on cache directory to use default rector cache directory

This commit is contained in:
Abdul Malik Ikhsan 2024-06-26 07:36:11 +07:00 committed by GitHub
parent f7860e16ad
commit 86480f498a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ return RectorConfig::configure()
->withParallel(120, 8, 10)
->withCache(
// Github action cache or local
is_dir('/tmp') ? '/tmp/rector' : sys_get_temp_dir() . '/rector',
is_dir('/tmp') ? '/tmp/rector' : null,
FileCacheStorage::class
)
// paths to refactor; solid alternative to CLI arguments