Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix outdated documentation in README.md #328

Merged
merged 3 commits into from
Jul 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ composer require rector/rector --dev

## Use Sets

To add a set to your config, use `Rector\Doctrine\Set\DoctrineSetList` class and pick one of constants:
To add a set to your config, use `->withPreparedSets` method, and pick one of constants:

```php
use Rector\Config\RectorConfig;

return RectorConfig::configure()
->withPreparedSets(doctrineCodeQuality: true);
```

If you're on PHP 7.x, you can use withSets() instead, for `doctrineCodeQuality` set, so you can define:

```php
use Rector\Config\RectorConfig;
Expand All @@ -25,6 +34,7 @@ return RectorConfig::configure()
DoctrineSetList::DOCTRINE_CODE_QUALITY,
]);
```
See [documentation](https://getrector.com/documentation)

<br>

Expand Down
Loading