Skip to content

Commit

Permalink
fix: rector cache dir config
Browse files Browse the repository at this point in the history
  • Loading branch information
fox91 committed Nov 20, 2023
1 parent 907bf0a commit 6d3af2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "^0.15.1 || ^0.16.0 || ^0.17.0 || ^0.18.0",
"rector/rector": "^0.17.11 || ^0.18.0",
"rector/rector": "^0.18.0",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.6",
"vimeo/psalm": "^4.6 || ^5.0"
Expand Down
6 changes: 3 additions & 3 deletions configs/rector.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
declare(strict_types=1);

use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Config\RectorConfig;
use Rector\Core\Configuration\Option;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
Expand Down Expand Up @@ -46,6 +46,6 @@
\Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector::class,
]);

$parameters = $rectorConfig->parameters();
$parameters->set(Option::CACHE_DIR, __DIR__.'/build/cache/rector');
$rectorConfig->cacheClass(FileCacheStorage::class);
$rectorConfig->cacheDirectory(__DIR__.'/build/cache/rector');
};

0 comments on commit 6d3af2f

Please sign in to comment.