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

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

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

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

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/operators/prefer-coalesce`](/docs/rules/lint/operators/prefer-coalesce) | `TernaryToNullCoalescingRector` | Ported |
| [`lint/php-7.0/no-call-user-method`](/docs/rules/lint/php-7-0/no-call-user-method) | `CallUserMethodRector` | Ported |
| [`lint/php-7.0/no-list-from-string`](/docs/rules/lint/php-7-0/no-list-from-string) | `ListSplitStringRector` | Ported |
| [`lint/php-7.0/prefer-braced-variable-variable`](/docs/rules/lint/php-7-0/prefer-braced-variable-variable) | `WrapVariableVariableNameInCurlyBracesRector` | Ported |
| [`lint/php-7.0/prefer-coalesce-return`](/docs/rules/lint/php-7-0/prefer-coalesce-return) | `IfIssetToCoalescingRector` | Ported |
| [`lint/php-7.0/prefer-random-int`](/docs/rules/lint/php-7-0/prefer-random-int) | `RandomFunctionRector` | Ported |
| [`lint/php-7.0/prefer-spaceship`](/docs/rules/lint/php-7-0/prefer-spaceship) | `TernaryToSpaceshipRector` | Ported |
| [`lint/php-7.0/prefer-spaceship-return`](/docs/rules/lint/php-7-0/prefer-spaceship-return) | `IfToSpaceshipRector` | Ported |
| [`lint/php-7.0/prefer-static-method-call`](/docs/rules/lint/php-7-0/prefer-static-method-call) | `ThisCallOnStaticMethodToStaticCallRector` | Ported |
| [`lint/php-7.0/prefer-throwable-handler`](/docs/rules/lint/php-7-0/prefer-throwable-handler) | `ExceptionHandlerTypehintRector` | Ported |
| [`lint/php-7.0/prefer-time`](/docs/rules/lint/php-7-0/prefer-time) | `RenameMktimeWithoutArgsToTimeRector` | Ported |
| [`lint/style/no-ereg`](/docs/rules/lint/style/no-ereg) | `EregToPregMatchRector` | Ported |
| [`lint/style/no-php4-constructor`](/docs/rules/lint/style/no-php4-constructor) | `Php4ConstructorRector` | Ported |
| [`lint/style/prefer-dirname-levels`](/docs/rules/lint/style/prefer-dirname-levels) | `MultiDirnameRector` | Ported |
