rector/php80 set
Rector’s php80 set: the Pun lint rules its Rector rules map to, and nothing else.
[lint]
sets = ["rector/php80"]
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 (17)
| Rule | Rector rules | Status |
|---|---|---|
lint/classes/add-stringable |
StringableForToStringRector |
Ported |
lint/dead-code/no-parent-call-without-parent |
RemoveParentCallWithoutParentRector |
Ported |
lint/functions/no-required-after-optional |
OptionalParametersAfterRequiredRector |
Ported |
lint/php-8.0/no-int-get-headers-format |
GetHeadersArgumentFormatRector |
Ported |
lint/php-8.0/no-unused-catch-variable |
RemoveUnusedVariableInCatchRector |
Ported |
lint/php-8.0/no-version-compare-operator-alias |
VersionCompareFuncCallArgumentRector |
Ported |
lint/php-8.0/prefer-get-debug-type |
GetDebugTypeRector |
Ported |
lint/php-8.0/prefer-match |
ChangeSwitchToMatchRector |
Ported |
lint/php-8.0/prefer-nullsafe-over-ternary |
TernaryToNullsafeCoalesceRector |
Ported |
lint/php-8.0/prefer-static-class |
ClassOnThisVariableObjectRector |
Ported |
lint/php-8.0/prefer-str-ends-with |
StrEndsWithRector |
Ported |
lint/php-8.0/prefer-str-starts-with |
StrStartsWithRector |
Ported |
lint/refactor/rename-function |
RenameFunctionRector |
Ported |
lint/refactor/replace-static-with-function |
StaticCallToFuncCallRector |
Ported |
lint/style/no-redundant-final |
FinalPrivateToPrivateVisibilityRector |
Ported |
lint/style/prefer-class-keyword-on-object |
ClassOnObjectRector |
Ported |
lint/style/prefer-str-contains |
StrContainsRector |
Ported |