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

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

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

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

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

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/php-7.2/no-constant-define-name`](/docs/rules/lint/php-7-2/no-constant-define-name) | `StringifyDefineRector` | Ported |
| [`lint/php-7.2/no-each`](/docs/rules/lint/php-7-2/no-each) | `ReplaceEachAssignmentWithKeyCurrentRector` | Ported |
| [`lint/php-7.2/no-get-class-null`](/docs/rules/lint/php-7-2/no-get-class-null) | `GetClassOnNullRector` | Ported |
| [`lint/php-7.2/no-list-each`](/docs/rules/lint/php-7-2/no-list-each) | `ListEachRector` | Ported |
| [`lint/php-7.2/no-string-assert`](/docs/rules/lint/php-7-2/no-string-assert) | `StringsAssertNakedRector` | Ported |
| [`lint/php-7.2/prefer-foreach-over-each`](/docs/rules/lint/php-7-2/prefer-foreach-over-each) | `WhileEachToForeachRector` | Ported |
| [`lint/php-7.2/require-parse-str-result`](/docs/rules/lint/php-7-2/require-parse-str-result) | `ParseStrWithResultArgumentRector` | Ported |
| [`lint/refactor/rename-function`](/docs/rules/lint/refactor/rename-function) | `RenameFunctionRector` | Ported |
