Skip to content

Commit

Permalink
Updated Rector to commit 1ae68446ee021d88238f915bc06201559a0ec82d
Browse files Browse the repository at this point in the history
rectorphp/rector-src@1ae6844 Update README to use the new config syntax (#5674)
  • Loading branch information
TomasVotruba committed Mar 3, 2024
1 parent 769ac36 commit 3a69e0f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 3a69e0f

Please sign in to comment.