feat: upgrade to symfony 7.4

This commit is contained in:
2026-09-01 11:24:44 +02:00
parent 8ed20db90c
commit 2459af122f
41 changed files with 1527 additions and 1219 deletions
+26
View File
@@ -0,0 +1,26 @@
<?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();