-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrector.php
27 lines (24 loc) · 880 Bytes
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
declare(strict_types=1);
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Symfony\Set\SymfonySetList;
use Rector\Symfony\Set\TwigSetList;
return RectorConfig::configure()
->withPaths([
__DIR__.'/migrations',
__DIR__.'/src',
__DIR__.'/tests',
])
->withCache(cacheDirectory: './var/cache/rector', cacheClass: FileCacheStorage::class)
->withImportNames(importShortClasses: false)
// Sync on PHP version in composer.json
->withPhpSets()
// Do not use UP_TO_* level sets for frameworks or libraries for performance.
// See https://github.com/rectorphp/rector-symfony/pull/572 for a great explanation.
->withSets([
SymfonySetList::SYMFONY_64,
PHPUnitSetList::PHPUNIT_100,
TwigSetList::TWIG_240,
]);