diff --git a/rector.php b/rector.php index 6d10096..343e00d 100644 --- a/rector.php +++ b/rector.php @@ -24,12 +24,12 @@ use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector; -return static function (RectorConfig $rectorConfig): void { - $rectorConfig->paths([ +return static function (RectorConfig $config): void { + $config->paths([ __DIR__ . '/**', ]); - $rectorConfig->sets([ + $config->sets([ SetList::PHP_82, SetList::PHP_83, SetList::CODE_QUALITY, @@ -40,9 +40,9 @@ PHPUnitSetList::PHPUNIT_100, ]); - $rectorConfig->rule(DeclareStrictTypesRector::class); + $config->rule(DeclareStrictTypesRector::class); - $rectorConfig->skip([ + $config->skip([ // Rules added by Rector's rule sets. CountArrayToEmptyArrayComparisonRector::class, DisallowedEmptyRuleFixerRector::class, @@ -56,11 +56,11 @@ '*/node_modules/*', ]); - $rectorConfig->fileExtensions([ + $config->fileExtensions([ 'php', 'inc', ]); - $rectorConfig->importNames(TRUE, FALSE); - $rectorConfig->importShortClasses(FALSE); + $config->importNames(TRUE, FALSE); + $config->importShortClasses(FALSE); };