---
title: "rector/php-polyfills set"
pagination: false
---

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

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

```toml
[lint]
sets = ["rector/php-polyfills"]
```

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

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/php-7.3/prefer-array-key-first`](/docs/rules/lint/php-7-3/prefer-array-key-first) | `ArrayKeyFirstLastRector` | Ported |
| [`lint/php-7.3/prefer-array-key-first-last`](/docs/rules/lint/php-7-3/prefer-array-key-first-last) | `ArrayKeysToArrayKeyFirstLastRector` | Ported |
| [`lint/php-7.3/prefer-is-countable`](/docs/rules/lint/php-7-3/prefer-is-countable) | `IsCountableRector` | 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-str-contains-over-mb-strpos`](/docs/rules/lint/php-8-0/prefer-str-contains-over-mb-strpos) | `MbStrContainsRector` | 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/php-8.3/prefer-json-validate`](/docs/rules/lint/php-8-3/prefer-json-validate) | `JsonValidateRector` | Ported |
| [`lint/php-8.4/prefer-array-find`](/docs/rules/lint/php-8-4/prefer-array-find) | `ForeachToArrayAllRector`, `ForeachToArrayAnyRector`, `ForeachToArrayFindKeyRector`, `ForeachToArrayFindRector` | Ported |
| [`lint/style/prefer-str-contains`](/docs/rules/lint/style/prefer-str-contains) | `StrContainsRector` | Ported |
