---
title: "rector-laravel/laravel-type-declarations set"
pagination: false
---

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

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

```toml
[lint]
sets = ["rector-laravel/laravel-type-declarations"]
```

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 (7)

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/laravel/add-legacy-relation-generics`](/docs/rules/lint/laravel/add-legacy-relation-generics) | `AddLegacyGenericReturnTypeToRelationsRector` | Ported |
| [`lint/laravel/add-new-relation-generics`](/docs/rules/lint/laravel/add-new-relation-generics) | `AddNewGenericReturnTypeToRelationsRector` | Ported |
| [`lint/laravel/add-query-closure-type`](/docs/rules/lint/laravel/add-query-closure-type) | `EloquentWhereTypeHintClosureParameterRector` | Ported |
| [`lint/laravel/add-relation-generics`](/docs/rules/lint/laravel/add-relation-generics) | `AddGenericReturnTypeToRelationsRector` | Ported |
| [`lint/laravel/add-relation-query-closure-type`](/docs/rules/lint/laravel/add-relation-query-closure-type) | `EloquentWhereRelationTypeHintingParameterRector` | Ported |
| [`lint/laravel/add-scope-builder-generics`](/docs/rules/lint/laravel/add-scope-builder-generics) | `AddGenericBuilderToScopesRector` | Ported |
| [`lint/laravel/add-tap-closure-type`](/docs/rules/lint/laravel/add-tap-closure-type) | `TypeHintTappableCallRector` | Ported |
