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

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

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

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

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/classes/add-stringable`](/docs/rules/lint/classes/add-stringable) | `StringableForToStringRector` | Ported |
| [`lint/dead-code/no-parent-call-without-parent`](/docs/rules/lint/dead-code/no-parent-call-without-parent) | `RemoveParentCallWithoutParentRector` | Ported |
| [`lint/functions/no-required-after-optional`](/docs/rules/lint/functions/no-required-after-optional) | `OptionalParametersAfterRequiredRector` | Ported |
| [`lint/php-8.0/no-int-get-headers-format`](/docs/rules/lint/php-8-0/no-int-get-headers-format) | `GetHeadersArgumentFormatRector` | Ported |
| [`lint/php-8.0/no-unused-catch-variable`](/docs/rules/lint/php-8-0/no-unused-catch-variable) | `RemoveUnusedVariableInCatchRector` | Ported |
| [`lint/php-8.0/no-version-compare-operator-alias`](/docs/rules/lint/php-8-0/no-version-compare-operator-alias) | `VersionCompareFuncCallArgumentRector` | Ported |
| [`lint/php-8.0/prefer-get-debug-type`](/docs/rules/lint/php-8-0/prefer-get-debug-type) | `GetDebugTypeRector` | Ported |
| [`lint/php-8.0/prefer-match`](/docs/rules/lint/php-8-0/prefer-match) | `ChangeSwitchToMatchRector` | Ported |
| [`lint/php-8.0/prefer-nullsafe-over-ternary`](/docs/rules/lint/php-8-0/prefer-nullsafe-over-ternary) | `TernaryToNullsafeCoalesceRector` | Ported |
| [`lint/php-8.0/prefer-static-class`](/docs/rules/lint/php-8-0/prefer-static-class) | `ClassOnThisVariableObjectRector` | Ported |
| [`lint/php-8.0/prefer-str-ends-with`](/docs/rules/lint/php-8-0/prefer-str-ends-with) | `StrEndsWithRector` | Ported |
| [`lint/php-8.0/prefer-str-starts-with`](/docs/rules/lint/php-8-0/prefer-str-starts-with) | `StrStartsWithRector` | Ported |
| [`lint/refactor/rename-function`](/docs/rules/lint/refactor/rename-function) | `RenameFunctionRector` | Ported |
| [`lint/refactor/replace-static-with-function`](/docs/rules/lint/refactor/replace-static-with-function) | `StaticCallToFuncCallRector` | Ported |
| [`lint/style/no-redundant-final`](/docs/rules/lint/style/no-redundant-final) | `FinalPrivateToPrivateVisibilityRector` | Ported |
| [`lint/style/prefer-class-keyword-on-object`](/docs/rules/lint/style/prefer-class-keyword-on-object) | `ClassOnObjectRector` | Ported |
| [`lint/style/prefer-str-contains`](/docs/rules/lint/style/prefer-str-contains) | `StrContainsRector` | Ported |
