rector/templates/rector.php.dist

22 lines
515 B
Plaintext
Raw Normal View History

2020-09-28 21:42:20 +00:00
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
2020-09-28 21:42:20 +00:00
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__PATHS__
]);
2020-09-28 21:42:20 +00:00
// register a single rule
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
// define sets of rules
// $rectorConfig->sets([
// LevelSetList::UP_TO_PHP_XY
// ]);
2020-09-28 21:42:20 +00:00
};