lint/refactor/replace-static-with-method
Not in any preset. In Rector’s rector-laravel/laravel-static-to-injection set. Unsafe fix: it can change behavior.
What it does
Change static call to service method via constructor injection
Configuration
[lint.rules]
"refactor/replace-static-with-method" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
StaticFacadeToServiceMethodCall(rector-laravel)