mirror of
https://github.com/wallabag/wallabag.git
synced 2026-06-24 12:21:59 +02:00
26 lines
770 B
PHP
26 lines
770 B
PHP
<?php
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
|
|
|
|
return RectorConfig::configure()
|
|
->withPaths([
|
|
__DIR__ . '/app',
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/tests',
|
|
__DIR__ . '/web',
|
|
])
|
|
->withRootFiles()
|
|
->withImportNames(importShortClasses: false)
|
|
->withAttributesSets(symfony: true, doctrine: true, gedmo: true, jms: true, sensiolabs: true)
|
|
->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [
|
|
'inline_public' => true,
|
|
])
|
|
->withSkip([
|
|
ClassPropertyAssignToConstructorPromotionRector::class => [
|
|
__DIR__ . '/src/Entity/*',
|
|
],
|
|
])
|
|
->withPhpSets()
|
|
->withTypeCoverageLevel(0);
|