rectorphp/rector-doctrine

[DOCUMENTATION] The main README.md shows an outdated way of converting attribute

Closed this issue · 3 comments

On the README.md file it shows, in order to convert Doctrine annotation into PHP attribute, a command as follow

use Rector\Config\RectorConfig;
use Rector\Doctrine\Set\DoctrineSetList;

return RectorConfig::configure()
    ->withSets([
        DoctrineSetList::DOCTRINE_CODE_QUALITY,
    ]);

This is however the old way to do and is not supported anymore. The official documentation shows another way (https://getrector.com/documentation/set-lists)

use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withAttributesSets(doctrine: true);

Thanks for reporting! Could you send PR to fix it? 👍

I do it as soon as I can.

Resolved at #328