Skip to content

Commit

Permalink
Simplified Rector config var.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 10, 2025
1 parent 14b1bb1 commit 5e314d7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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);
};

1 comment on commit 5e314d7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.