rector/php70 set
Rector’s php70 set: the Pun lint rules its Rector rules map to, and nothing else.
[lint]
sets = ["rector/php70"]
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 (14)
| Rule | Rector rules | Status |
|---|---|---|
lint/operators/prefer-coalesce |
TernaryToNullCoalescingRector |
Ported |
lint/php-7.0/no-call-user-method |
CallUserMethodRector |
Ported |
lint/php-7.0/no-list-from-string |
ListSplitStringRector |
Ported |
lint/php-7.0/prefer-braced-variable-variable |
WrapVariableVariableNameInCurlyBracesRector |
Ported |
lint/php-7.0/prefer-coalesce-return |
IfIssetToCoalescingRector |
Ported |
lint/php-7.0/prefer-random-int |
RandomFunctionRector |
Ported |
lint/php-7.0/prefer-spaceship |
TernaryToSpaceshipRector |
Ported |
lint/php-7.0/prefer-spaceship-return |
IfToSpaceshipRector |
Ported |
lint/php-7.0/prefer-static-method-call |
ThisCallOnStaticMethodToStaticCallRector |
Ported |
lint/php-7.0/prefer-throwable-handler |
ExceptionHandlerTypehintRector |
Ported |
lint/php-7.0/prefer-time |
RenameMktimeWithoutArgsToTimeRector |
Ported |
lint/style/no-ereg |
EregToPregMatchRector |
Ported |
lint/style/no-php4-constructor |
Php4ConstructorRector |
Ported |
lint/style/prefer-dirname-levels |
MultiDirnameRector |
Ported |