lint/laravel/no-useless-with-call
In the code-quality set. Unsafe fix: it can change behaviour. Runs when laravel is installed.
What it does
Removes redundant with helper calls
Configuration
[lint.rules]
"laravel/no-useless-with-call" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
RemoveRedundantWithCalls(rector-laravel)NoUselessWithFunctionCallsRule(phpstan-classes)larastan.uselessConstructs.with(larastan)