lint/laravel-8/prefer-factory-state-methods
Not in any preset. In Rector’s rector-laravel/laravel-legacy-factories-to-classes set. Needs the laravel extension. Unsafe fix: it can change behavior.
What it does
Call the state methods directly instead of specify the name of state.
Configuration
[lint.rules]
"laravel-8/prefer-factory-state-methods" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
FactoryApplyingStates(rector-laravel)