---
title: "rector/php81 set"
pagination: false
---

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

Rector's `php81` set: the Pun lint rules its Rector rules map to, and nothing else.

```toml
[lint]
sets = ["rector/php81"]
```

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

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/php-8.1/no-closure-from-callable`](/docs/rules/lint/php-8-1/no-closure-from-callable) | `ClosureFromCallableToFirstClassCallableRector` | Ported |
| [`lint/php-8.1/no-null-preg-split-limit`](/docs/rules/lint/php-8-1/no-null-preg-split-limit) | `NullToStrictIntPregSlitFuncCallLimitArgRector` | Ported |
| [`lint/php-8.1/no-reflection-set-accessible`](/docs/rules/lint/php-8-1/no-reflection-set-accessible) | `RemoveReflectionSetAccessibleCallsRector` | Ported |
| [`lint/php-8.1/prefer-enum-case-over-myclabs-call`](/docs/rules/lint/php-8-1/prefer-enum-case-over-myclabs-call) | `MyCLabsMethodCallToEnumConstRector` | Ported |
| [`lint/php-8.1/prefer-enum-case-over-spatie-call`](/docs/rules/lint/php-8-1/prefer-enum-case-over-spatie-call) | `SpatieEnumMethodCallToEnumConstRector` | Ported |
| [`lint/php-8.1/prefer-enum-from`](/docs/rules/lint/php-8-1/prefer-enum-from) | `MyCLabsConstructorCallToEnumFromRector` | Ported |
| [`lint/php-8.1/prefer-first-class-callable-argument`](/docs/rules/lint/php-8-1/prefer-first-class-callable-argument) | `FunctionFirstClassCallableRector` | Ported |
| [`lint/php-8.1/prefer-first-class-callable-over-array`](/docs/rules/lint/php-8-1/prefer-first-class-callable-over-array) | `ArrayToFirstClassCallableRector` | Ported |
| [`lint/php-8.1/prefer-first-class-callable-over-arrow-function`](/docs/rules/lint/php-8-1/prefer-first-class-callable-over-arrow-function) | `ArrowFunctionDelegatingCallToFirstClassCallableRector` | Ported |
| [`lint/php-8.1/prefer-first-class-callable-over-closure`](/docs/rules/lint/php-8-1/prefer-first-class-callable-over-closure) | `ClosureDelegatingCallToFirstClassCallableRector` | Ported |
| [`lint/php-8.1/prefer-native-enum-over-myclabs`](/docs/rules/lint/php-8-1/prefer-native-enum-over-myclabs) | `MyCLabsClassToEnumRector` | Ported |
| [`lint/php-8.1/prefer-native-enum-over-spatie`](/docs/rules/lint/php-8-1/prefer-native-enum-over-spatie) | `SpatieEnumClassToEnumRector` | Ported |
| [`lint/php-8.1/prefer-readonly-property`](/docs/rules/lint/php-8-1/prefer-readonly-property) | `ReadOnlyPropertyRector` | Ported |
| [`lint/types/add-never-return-type`](/docs/rules/lint/types/add-never-return-type) | `ReturnNeverTypeRector` | Ported |
