diff --git a/build/target-repository/README.md b/build/target-repository/README.md index 40bc46cacd9..4008c23e547 100644 --- a/build/target-repository/README.md +++ b/build/target-repository/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: