rector/php-polyfills set
Rector’s php-polyfills set: the Pun lint rules its Rector rules map to, and nothing else.
[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 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.
Rules (10)
| Rule | Rector rules | Status |
|---|---|---|
lint/php-7.3/prefer-array-key-first |
ArrayKeyFirstLastRector |
Ported |
lint/php-7.3/prefer-array-key-first-last |
ArrayKeysToArrayKeyFirstLastRector |
Ported |
lint/php-7.3/prefer-is-countable |
IsCountableRector |
Ported |
lint/php-8.0/prefer-get-debug-type |
GetDebugTypeRector |
Ported |
lint/php-8.0/prefer-str-contains-over-mb-strpos |
MbStrContainsRector |
Ported |
lint/php-8.0/prefer-str-ends-with |
StrEndsWithRector |
Ported |
lint/php-8.0/prefer-str-starts-with |
StrStartsWithRector |
Ported |
lint/php-8.3/prefer-json-validate |
JsonValidateRector |
Ported |
lint/php-8.4/prefer-array-find |
ForeachToArrayAllRector, ForeachToArrayAnyRector, ForeachToArrayFindKeyRector, ForeachToArrayFindRector |
Ported |
lint/style/prefer-str-contains |
StrContainsRector |
Ported |