@@ -351,10 +351,32 @@ by running the recipe:
351351composer recipe:install ibexa/rector --force --reset --yes
352352```
353353
354- TODO: Add other rule sets?
354+ You can add some other rule sets (like, for example, the Symfony ones) to match newer standards.
355355
356- You can add some other rule sets like the Symfony and SensioLabs ones to match newer standards.
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.
356+ It's recommended to activate one set at a time, check the output, and decide if kept now, or discarded for another time.
357+
358+ ``` php
359+ //…
360+ use Rector\Symfony\Set\SymfonySetList;
361+ use Rector\Symfony\Set\SensiolabsSetList;
362+ //…
363+ ->withSets(
364+ [
365+ IbexaSetList::IBEXA_50->value,
366+ SymfonySetList::SYMFONY_60,
367+ SymfonySetList::SYMFONY_61,
368+ SymfonySetList::SYMFONY_62,
369+ SymfonySetList::SYMFONY_63,
370+ SymfonySetList::SYMFONY_64,
371+ SymfonySetList::SYMFONY_70,
372+ SymfonySetList::SYMFONY_71,
373+ SymfonySetList::SYMFONY_72,
374+ SensiolabsSetList::ANNOTATIONS_TO_ATTRIBUTES,
375+ ]
376+ );
377+ ```
378+
379+ But you can also go faster with bigger [ rule sets in the modern way] ( https://getrector.com/documentation/set-lists ) like in the following example:
358380
359381``` php
360382 ->withSets(
@@ -368,8 +390,6 @@ It's recommended to activate one set at a time, check the output, and decide if
368390 ;
369391```
370392
371- TODO: SymfonySetList deprecation and withAttributesSets
372-
373393#### Update field type identifiers
374394
375395- Update in template
0 commit comments