Skip to content

Commit

Permalink
Kick off basic rector.php with simpler and more practical rule (#5552)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Feb 4, 2024
1 parent 081cf7f commit 183422d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions templates/rector.php.dist
Expand Up @@ -2,18 +2,15 @@

declare(strict_types=1);

use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;

return RectorConfig::configure()
->withPaths([
__PATHS__
])
// uncomment to reach your current PHP version
// ->withPhpSets()
->withRules([
InlineConstructorDefaultToPropertyRector::class,
])
->withSets([
// define sets of rules
// LevelSetList::UP_TO_PHP_XY
AddVoidReturnTypeWhereNoReturnRector::class,
]);

0 comments on commit 183422d

Please sign in to comment.