rector-laravel/laravel-static-to-injection set
rector-laravel’s laravel-static-to-injection set: the Pun lint rules its Rector rules map to, and nothing else.
[lint]
sets = ["rector-laravel/laravel-static-to-injection"]
A rule merged from several Rector rules runs only the rewrites of this set’s Rector rules, unless a preset also turns it on. Rector rules that are format rules in Pun run under [format] instead. Laravel, Pest, and PHPUnit rules also need their extension.
Rules (6)
| Rule | Rector rules | Status |
|---|---|---|
lint/laravel/prefer-constructor-injection |
ArgumentFuncCallToMethodCallRector |
Ported |
lint/laravel/prefer-facade-over-app |
HelperFuncCallToFacadeClassRector |
Ported |
lint/laravel/prefer-request-validate |
RequestStaticValidateToInjectRector |
Ported |
lint/refactor/replace-function-with-new |
FuncCallToNewRector |
Ported |
lint/refactor/replace-function-with-static |
FuncCallToStaticCallRector |
Ported |
lint/refactor/replace-static-with-method |
StaticFacadeToServiceMethodCallRector |
Ported |