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,
]);
On the README.md file it shows, in order to convert Doctrine annotation into PHP attribute, a command as follow
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)