From 6d3af2f81be526c34af518dbc4262e5605c9f867 Mon Sep 17 00:00:00 2001 From: Andrea Falco Date: Mon, 20 Nov 2023 15:20:23 +0100 Subject: [PATCH] fix: rector cache dir config --- composer.json | 2 +- configs/rector.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 0920d6c..0128391 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/configs/rector.php b/configs/rector.php index fcb1ce4..8384357 100644 --- a/configs/rector.php +++ b/configs/rector.php @@ -1,8 +1,8 @@ parameters(); - $parameters->set(Option::CACHE_DIR, __DIR__.'/build/cache/rector'); + $rectorConfig->cacheClass(FileCacheStorage::class); + $rectorConfig->cacheDirectory(__DIR__.'/build/cache/rector'); };