2025-04-05 13:08:13 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
use Rector\Config\RectorConfig;
|
2025-04-05 13:54:27 +02:00
|
|
|
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
|
2025-04-05 13:08:13 +02:00
|
|
|
|
|
|
|
return RectorConfig::configure()
|
|
|
|
->withPaths([
|
|
|
|
__DIR__ . '/app',
|
|
|
|
__DIR__ . '/fixtures',
|
|
|
|
__DIR__ . '/src',
|
|
|
|
__DIR__ . '/tests',
|
|
|
|
__DIR__ . '/web',
|
|
|
|
])
|
2025-04-05 14:51:50 +02:00
|
|
|
->withRootFiles()
|
2025-04-05 13:08:13 +02:00
|
|
|
->withImportNames(importShortClasses: false)
|
2025-04-05 15:12:30 +02:00
|
|
|
->withAttributesSets(symfony: true, doctrine: true, gedmo: true, jms: true)
|
2025-04-05 13:54:27 +02:00
|
|
|
->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [
|
|
|
|
'inline_public' => true,
|
|
|
|
])
|
|
|
|
->withSkip([
|
|
|
|
ClassPropertyAssignToConstructorPromotionRector::class => [
|
|
|
|
__DIR__ . '/src/Entity/*',
|
|
|
|
],
|
|
|
|
])
|
2025-04-05 14:15:38 +02:00
|
|
|
->withPhpSets()
|
2025-04-05 13:08:13 +02:00
|
|
|
->withTypeCoverageLevel(0);
|