lint/laravel/prefer-closure-only-bind
Not in any preset. In Rector’s rector-laravel/laravel-120, rector-laravel/up-to-laravel-120, rector-laravel/up-to-laravel-130, rector-laravel/up-to-laravel-130-without-attributes sets. Needs the laravel extension. Safe fix.
What it does
Drop the specified abstract class from the bind method and replace it with a closure that returns the abstract class.
Configuration
[lint.rules]
"laravel/prefer-closure-only-bind" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
ContainerBindConcreteWithClosureOnly(rector-laravel)