@@ -357,29 +357,14 @@ You can add some other rule sets like the Symfony and SensioLabs ones to match n
357
357
It's recommended to activate one set at a time, check the output, and decide if kept now, or discarded for a later usage.
358
358
359
359
``` php
360
- //…
361
- //use Rector\Doctrine\Set\DoctrineSetList;
362
- use Rector\Symfony\Set\SymfonySetList;
363
- use Rector\Symfony\Set\SensiolabsSetList;
364
- //…
365
360
->withSets(
366
361
[
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
379
363
]
380
364
)
381
- ->withAttributesSets(symfony: true) // Duplicate SymfonySetList in witch way? Which rule sets is it adding?
382
365
->withPhpSets()
366
+ ->withComposerBased(twig: true, symfony: true)
367
+ ->withAttributesSets(symfony: true, sensiolabs: true)
383
368
;
384
369
```
385
370
0 commit comments