rector/php72 set
Rector’s php72 set: the Pun lint rules its Rector rules map to, and nothing else.
[lint]
sets = ["rector/php72"]
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 (8)
| Rule | Rector rules | Status |
|---|---|---|
lint/php-7.2/no-constant-define-name |
StringifyDefineRector |
Ported |
lint/php-7.2/no-each |
ReplaceEachAssignmentWithKeyCurrentRector |
Ported |
lint/php-7.2/no-get-class-null |
GetClassOnNullRector |
Ported |
lint/php-7.2/no-list-each |
ListEachRector |
Ported |
lint/php-7.2/no-string-assert |
StringsAssertNakedRector |
Ported |
lint/php-7.2/prefer-foreach-over-each |
WhileEachToForeachRector |
Ported |
lint/php-7.2/require-parse-str-result |
ParseStrWithResultArgumentRector |
Ported |
lint/refactor/rename-function |
RenameFunctionRector |
Ported |