Sets
| Set | Rules |
|---|---|
ALL | CONVERT + GROUP + TRAITS: the full migration pipeline |
CONVERT | InlineResolvableParentRulesRector, ValidationStringToFluentRuleRector, ValidationArrayToFluentRuleRector, ConvertLivewireRuleAttributeRector |
GROUP | GroupWildcardRulesToEachRector |
TRAITS | AddHasFluentRulesTraitRector, AddHasFluentValidationTraitRector |
SIMPLIFY | Four post-migration cleanups, not in ALL |
POLISH | UpdateRulesReturnTypeDocblockRector, not in ALL |
SCHEMA | ConvertToFluentSchemaRector, not in ALL |
php
// Just conversion
->withSets([FluentValidationSetList::CONVERT])
// Conversion + traits, no grouping
->withSets([
FluentValidationSetList::CONVERT,
FluentValidationSetList::TRAITS,
])Do not bundle ALL + SIMPLIFY + POLISH + SCHEMA into one config. SIMPLIFY is meant to run after you have reviewed the initial diff, and POLISH needs CONVERT's multi-pass output to have stabilized. Each is its own vendor/bin/rector process invocation against its own withSets([...]).