Skip to content

Sets

SetRules
ALLCONVERT + GROUP + TRAITS: the full migration pipeline
CONVERTInlineResolvableParentRulesRector, ValidationStringToFluentRuleRector, ValidationArrayToFluentRuleRector, ConvertLivewireRuleAttributeRector
GROUPGroupWildcardRulesToEachRector
TRAITSAddHasFluentRulesTraitRector, AddHasFluentValidationTraitRector
SIMPLIFYFour post-migration cleanups, not in ALL
POLISHUpdateRulesReturnTypeDocblockRector, not in ALL
SCHEMAConvertToFluentSchemaRector, 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([...]).