From a0ca13132a23fa08f1b4c0819b2b33ad4a81b5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Mon, 2 Nov 2026 10:19:57 +0100 Subject: [PATCH] Drop the cacheClass() call Rector 2.8 removed Rector 2.8 removed RectorConfig::cacheClass(), so 'vendor/bin/rector process' fails with 'Call to undefined method' on highest deps. FileCacheStorage is Rector's default cache storage (and the only one left in 2.8), so dropping the call keeps the behaviour. --- rector.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/rector.php b/rector.php index 968b47e..814c336 100644 --- a/rector.php +++ b/rector.php @@ -2,12 +2,10 @@ declare(strict_types=1); -use Rector\Caching\ValueObject\Storage\FileCacheStorage; use Rector\Config\RectorConfig; use Rector\Set\ValueObject\LevelSetList; return static function (RectorConfig $rectorConfig): void { - $rectorConfig->cacheClass(FileCacheStorage::class); $rectorConfig->cacheDirectory('./.build/rector'); $rectorConfig->paths([