Skip to content

Instantly share code, notes, and snippets.

@burus86
Last active March 28, 2025 18:13
Show Gist options
  • Select an option

  • Save burus86/c6af6fa7b59168652587347bf68e6d4c to your computer and use it in GitHub Desktop.

Select an option

Save burus86/c6af6fa7b59168652587347bf68e6d4c to your computer and use it in GitHub Desktop.
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/src',
//__DIR__ . '/tests',
]);
$rectorConfig->skip([
__DIR__ . '/src/Kernel.php',
//__DIR__ . '/tests/bootstrap.php',
]);
$rectorConfig->rules([
InlineConstructorDefaultToPropertyRector::class,
]);
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_84,
SetList::CODE_QUALITY,
SetList::CODING_STYLE,
SetList::DEAD_CODE,
SetList::EARLY_RETURN,
SetList::NAMING,
SetList::TYPE_DECLARATION,
SetList::PRIVATIZATION,
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment