From 183422d041785e31cbd50665023cece58616ea25 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 4 Feb 2024 13:42:24 +0100 Subject: [PATCH] Kick off basic rector.php with simpler and more practical rule (#5552) --- templates/rector.php.dist | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/templates/rector.php.dist b/templates/rector.php.dist index e487c583e7c..9ada8e257df 100644 --- a/templates/rector.php.dist +++ b/templates/rector.php.dist @@ -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, ]);