lint/laravel/prefer-dispatch-helper
In the code-quality set. Unsafe fix: it can change behaviour. Runs when laravel is installed.
What it does
Use the event or dispatch helpers instead of the static dispatch method.
Configuration
[lint.rules]
"laravel/prefer-dispatch-helper" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
DispatchToHelperFunctions(rector-laravel)