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 */