2020-09-28 23:42:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-04-12 08:58:57 +00:00
|
|
|
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
|
|
|
use Rector\Config\RectorConfig;
|
2021-11-28 17:12:25 +00:00
|
|
|
use Rector\Set\ValueObject\LevelSetList;
|
2020-09-28 23:42:20 +02:00
|
|
|
|
2022-04-12 08:58:57 +00:00
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
|
|
$rectorConfig->paths([
|
2021-09-02 11:45:03 +00:00
|
|
|
__DIR__ . '/src'
|
|
|
|
]);
|
2020-09-28 23:42:20 +02:00
|
|
|
|
|
|
|
// register a single rule
|
2022-04-12 08:58:57 +00:00
|
|
|
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
|
|
|
|
|
|
|
// define sets of rules
|
|
|
|
// $rectorConfig->sets([
|
|
|
|
// LevelSetList::UP_TO_PHP_XY
|
|
|
|
// ]);
|
2020-09-28 23:42:20 +02:00
|
|
|
};
|