Skip to content

Commit

Permalink
use FileCacheStorage for RenameClassRectorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Apr 23, 2023
1 parent 031fae0 commit af7c37c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Acme\Bar\DoNotUpdateExistingTargetNamespace;
use Manual\Twig\TwigFilter;
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\Name\RenameClassRector;
use Rector\Tests\Renaming\Rector\Name\RenameClassRector\Fixture\DuplicatedClass;
Expand All @@ -19,6 +20,8 @@
use Rector\Tests\Renaming\Rector\Name\RenameClassRector\Source\SomeNonFinalClass;

return static function (RectorConfig $rectorConfig): void {
// to avoid random error on CI
$rectorConfig->cacheClass(FileCacheStorage::class);
$rectorConfig->removeUnusedImports();

$rectorConfig
Expand Down

0 comments on commit af7c37c

Please sign in to comment.