---
title: "rector/type-declaration-docblocks set"
pagination: false
---

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

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

```toml
[lint]
sets = ["rector/type-declaration-docblocks"]
```

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

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/types/add-getter-return-phpdoc`](/docs/rules/lint/types/add-getter-return-phpdoc) | `DocblockGetterReturnArrayFromPropertyDocblockVarRector` | Ported |
| [`lint/types/add-param-phpdoc-from-callable-call`](/docs/rules/lint/types/add-param-phpdoc-from-callable-call) | `AddParamArrayDocblockBasedOnCallableNativeFuncCallRector` | Ported |
| [`lint/types/add-param-phpdoc-from-dim-fetch`](/docs/rules/lint/types/add-param-phpdoc-from-dim-fetch) | `AddParamArrayDocblockFromDimFetchAccessRector` | Ported |
| [`lint/types/add-param-phpdoc-from-local-calls`](/docs/rules/lint/types/add-param-phpdoc-from-local-calls) | `ClassMethodArrayDocblockParamFromLocalCallsRector` | Ported |
| [`lint/types/add-param-phpdoc-from-reference-assign`](/docs/rules/lint/types/add-param-phpdoc-from-reference-assign) | `AddParamArrayDocblockFromAssignsParamToParamReferenceRector` | Ported |
| [`lint/types/add-return-phpdoc-common-object`](/docs/rules/lint/types/add-return-phpdoc-common-object) | `AddReturnDocblockForCommonObjectDenominatorRector` | Ported |
| [`lint/types/add-return-phpdoc-dim-assigned-object`](/docs/rules/lint/types/add-return-phpdoc-dim-assigned-object) | `AddReturnDocblockForArrayDimAssignedObjectRector` | Ported |
| [`lint/types/add-return-phpdoc-direct-array`](/docs/rules/lint/types/add-return-phpdoc-direct-array) | `DocblockReturnArrayFromDirectArrayInstanceRector` | Ported |
| [`lint/types/add-return-phpdoc-json-array`](/docs/rules/lint/types/add-return-phpdoc-json-array) | `AddReturnDocblockForJsonArrayRector` | Ported |
| [`lint/types/add-return-phpdoc-scalar-array`](/docs/rules/lint/types/add-return-phpdoc-scalar-array) | `AddReturnDocblockForScalarArrayFromAssignsRector` | Ported |
| [`lint/types/add-var-phpdoc-from-constructor-param`](/docs/rules/lint/types/add-var-phpdoc-from-constructor-param) | `DocblockVarFromParamDocblockInConstructorRector` | Ported |
| [`lint/types/add-var-phpdoc-from-default`](/docs/rules/lint/types/add-var-phpdoc-from-default) | `DocblockVarArrayFromPropertyDefaultsRector` | Ported |
| [`lint/types/add-var-phpdoc-from-dim-fetch`](/docs/rules/lint/types/add-var-phpdoc-from-dim-fetch) | `AddVarArrayDocblockFromDimFetchAssignRector` | Ported |
| [`lint/types/add-var-phpdoc-from-getter`](/docs/rules/lint/types/add-var-phpdoc-from-getter) | `DocblockVarArrayFromGetterReturnRector` | Ported |
| [`lint/types/no-phpstan-phpdoc-tag`](/docs/rules/lint/types/no-phpstan-phpdoc-tag) | `MergePhpstanDocTagIntoNativeRector` | Ported |
| [`lint/types/prefer-generic-collection-phpdoc`](/docs/rules/lint/types/prefer-generic-collection-phpdoc) | `NarrowArrayCollectionUnionReturnDocblockRector` | Ported |
| [`lint/types/prefer-literal-bool-phpdoc`](/docs/rules/lint/types/prefer-literal-bool-phpdoc) | `NarrowBoolDocblockReturnTypeRector` | Ported |
