From 2f8afbb309520c7fb6b7a17201f076a24f80f5c0 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 4 Feb 2024 12:44:34 +0000 Subject: [PATCH] Updated Rector to commit 183422d041785e31cbd50665023cece58616ea25 https://github.com/rectorphp/rector-src/commit/183422d041785e31cbd50665023cece58616ea25 Kick off basic rector.php with simpler and more practical rule (#5552) --- src/Application/VersionResolver.php | 4 ++-- templates/rector.php.dist | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index e002d338fe0..2f9894401e0 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '081cf7f7e508428f259b83125883178632e350dc'; + public const PACKAGE_VERSION = '183422d041785e31cbd50665023cece58616ea25'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-02-04 12:03:25'; + public const RELEASE_DATE = '2024-02-04 13:42:24'; /** * @var int */ 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, ]);