---
title: "rector-laravel/laravel-static-to-injection set"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

rector-laravel's `laravel-static-to-injection` set: the Pun lint rules its Rector rules map to, and nothing else.

```toml
[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](/docs/configuration/presets#lint-presets) 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](/docs/configuration/pun-toml#extensions).

## Rules (6)

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/laravel/prefer-constructor-injection`](/docs/rules/lint/laravel/prefer-constructor-injection) | `ArgumentFuncCallToMethodCallRector` | Ported |
| [`lint/laravel/prefer-facade-over-app`](/docs/rules/lint/laravel/prefer-facade-over-app) | `HelperFuncCallToFacadeClassRector` | Ported |
| [`lint/laravel/prefer-request-validate`](/docs/rules/lint/laravel/prefer-request-validate) | `RequestStaticValidateToInjectRector` | Ported |
| [`lint/refactor/replace-function-with-new`](/docs/rules/lint/refactor/replace-function-with-new) | `FuncCallToNewRector` | Ported |
| [`lint/refactor/replace-function-with-static`](/docs/rules/lint/refactor/replace-function-with-static) | `FuncCallToStaticCallRector` | Ported |
| [`lint/refactor/replace-static-with-method`](/docs/rules/lint/refactor/replace-static-with-method) | `StaticFacadeToServiceMethodCallRector` | Ported |
