Projects like Symfony, Doctrine, Twig or Laravel have lots of versions. Instead of adding dozens of sets for each of those, you can make use of composer-based set resolution:
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withComposerBased(doctrine: true, twig: true, symfony: true);
composer.json
version of twig/twig
, doctrine/*
and symfony/*
If you upgrade to Doctrine 4, Twig 4, or Symfony 10 later, Rector will pick up sets for you.