27 lines
839 B
PHP
27 lines
839 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Symfony\Set\SymfonySetList;
|
|
|
|
return RectorConfig::configure()
|
|
->withPaths([
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/tests',
|
|
])
|
|
->withSymfonyContainerXml(__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml')
|
|
// Upgrade rules bound to the Symfony / Twig / Doctrine versions currently
|
|
// installed (resolved from composer.lock). Bump the constraints and run
|
|
// `composer update` before executing Rector so it targets 7.x.
|
|
->withComposerBased(twig: true, doctrine: true, symfony: true)
|
|
->withSets([
|
|
SymfonySetList::CONFIGS,
|
|
])
|
|
->withSkip([
|
|
// Generated migrations are frozen once shipped.
|
|
__DIR__ . '/migrations',
|
|
__DIR__ . '/src/**/DoctrineMigrations',
|
|
])
|
|
->withParallel();
|