mirror of
https://github.com/code-rhapsodie/dataflow-bundle.git
synced 2026-03-24 14:52:21 +01:00
26 lines
690 B
PHP
26 lines
690 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
use Rector\Symfony\Set\SymfonySetList;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->paths([
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/Tests',
|
|
]);
|
|
|
|
// register a single rule
|
|
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
|
|
|
$rectorConfig->sets([
|
|
SymfonySetList::SYMFONY_60,
|
|
SymfonySetList::SYMFONY_CODE_QUALITY,
|
|
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
|
|
LevelSetList::UP_TO_PHP_80,
|
|
]);
|
|
};
|