1<?php 2 3declare(strict_types=1); 4 5use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; 6use Rector\Config\RectorConfig; 7use Rector\Set\ValueObject\LevelSetList; 8use Rector\Set\ValueObject\SetList; 9 10return static function (RectorConfig $rectorConfig): void { 11 $rectorConfig->paths([ 12 __DIR__.'/src', 13 ]); 14 15 // register a single rule 16 $rectorConfig->rules([ 17 InlineConstructorDefaultToPropertyRector::class, 18 ]); 19 20 $rectorConfig->sets([ 21 LevelSetList::UP_TO_PHP_81, 22 SetList::CODE_QUALITY, 23 ]); 24}; 25