@@ -351,10 +351,32 @@ by running the recipe:
351
351
composer recipe:install ibexa/rector --force --reset --yes
352
352
```
353
353
354
- TODO: Add other rule sets?
354
+ You can add some other rule sets (like, for example, the Symfony ones) to match newer standards.
355
355
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:
358
380
359
381
``` php
360
382
->withSets(
@@ -368,8 +390,6 @@ It's recommended to activate one set at a time, check the output, and decide if
368
390
;
369
391
```
370
392
371
- TODO: SymfonySetList deprecation and withAttributesSets
372
-
373
393
#### Update field type identifiers
374
394
375
395
- Update in template
0 commit comments