[DOCUMENTATION] The main README.md shows an outdated way of converting attribute
Closed this issue · 3 comments
alexis-boyer commented
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);
TomasVotruba commented
Thanks for reporting! Could you send PR to fix it? 👍
alexis-boyer commented
I do it as soon as I can.
samsonasik commented
Resolved at #328