From 3a69e0ff7b44f0050f0c4b54870b3c138d0643da Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 3 Mar 2024 02:43:03 +0000 Subject: [PATCH] Updated Rector to commit 1ae68446ee021d88238f915bc06201559a0ec82d https://github.com/rectorphp/rector-src/commit/1ae68446ee021d88238f915bc06201559a0ec82d Update README to use the new config syntax (#5674) --- README.md | 19 +++++++++---------- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 40bc46cacd9d..4008c23e5470 100644 --- a/README.md +++ b/README.md @@ -43,19 +43,18 @@ And modify it: ```php use Rector\Config\RectorConfig; -use Rector\Set\ValueObject\SetList; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector; -return static function (RectorConfig $rectorConfig): void { +return RectorConfig::configure() // register single rule - $rectorConfig->rule(TypedPropertyFromStrictConstructorRector::class); - - // here we can define, what sets of rules will be applied - // tip: use "SetList" class to autocomplete sets with your IDE - $rectorConfig->sets([ - SetList::CODE_QUALITY - ]); -}; + ->withRules([ + TypedPropertyFromStrictConstructorRector::class + ]) + // here we can define, what prepared sets of rules will be applied + ->withPreparedSets( + deadCode: true, + codeQuality: true + ); ``` Then dry run Rector: diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 4031f6c9cfd9..0640ce130c82 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 = '1cd83bef6196e8b8913d2252a6c8a826bafcf62a'; + public const PACKAGE_VERSION = '1ae68446ee021d88238f915bc06201559a0ec82d'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-03-03 09:30:52'; + public const RELEASE_DATE = '2024-03-03 09:40:51'; /** * @var int */