@@ -357,29 +357,14 @@ You can add some other rule sets like the Symfony and SensioLabs ones to match n
357357It's recommended to activate one set at a time, check the output, and decide if kept now, or discarded for a later usage.
358358
359359``` php
360- //…
361- //use Rector\Doctrine\Set\DoctrineSetList;
362- use Rector\Symfony\Set\SymfonySetList;
363- use Rector\Symfony\Set\SensiolabsSetList;
364- //…
365360 ->withSets(
366361 [
367- IbexaSetList::IBEXA_50->value, // rule set for upgrading to Ibexa DXP 5.0
368- SymfonySetList::SYMFONY_60,
369- SymfonySetList::SYMFONY_61,
370- SymfonySetList::SYMFONY_62,
371- SymfonySetList::SYMFONY_63,
372- SymfonySetList::SYMFONY_64,
373- SymfonySetList::SYMFONY_70,
374- SymfonySetList::SYMFONY_71,
375- SymfonySetList::SYMFONY_72,
376- SensiolabsSetList::ANNOTATIONS_TO_ATTRIBUTES,
377- //DoctrineSetList::DOCTRINE_DBAL_211, //TODO: Useful? No really. Deprecated. I'll remove it.
378- //TODO: Other useful sets?
362+ IbexaSetList::IBEXA_50->value // rule set for upgrading to Ibexa DXP 5.0
379363 ]
380364 )
381- ->withAttributesSets(symfony: true) // Duplicate SymfonySetList in witch way? Which rule sets is it adding?
382365 ->withPhpSets()
366+ ->withComposerBased(twig: true, symfony: true)
367+ ->withAttributesSets(symfony: true, sensiolabs: true)
383368 ;
384369```
385370
0 commit comments