Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

rector/php81 set

Rector’s php81 set: the Pun lint rules its Rector rules map to, and nothing else.

[lint]
sets = ["rector/php81"]

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/php-8.1/no-closure-from-callable ClosureFromCallableToFirstClassCallableRector Ported
lint/php-8.1/no-null-preg-split-limit NullToStrictIntPregSlitFuncCallLimitArgRector Ported
lint/php-8.1/no-reflection-set-accessible RemoveReflectionSetAccessibleCallsRector Ported
lint/php-8.1/prefer-enum-case-over-myclabs-call MyCLabsMethodCallToEnumConstRector Ported
lint/php-8.1/prefer-enum-case-over-spatie-call SpatieEnumMethodCallToEnumConstRector Ported
lint/php-8.1/prefer-enum-from MyCLabsConstructorCallToEnumFromRector Ported
lint/php-8.1/prefer-first-class-callable-argument FunctionFirstClassCallableRector Ported
lint/php-8.1/prefer-first-class-callable-over-array ArrayToFirstClassCallableRector Ported
lint/php-8.1/prefer-first-class-callable-over-arrow-function ArrowFunctionDelegatingCallToFirstClassCallableRector Ported
lint/php-8.1/prefer-first-class-callable-over-closure ClosureDelegatingCallToFirstClassCallableRector Ported
lint/php-8.1/prefer-native-enum-over-myclabs MyCLabsClassToEnumRector Ported
lint/php-8.1/prefer-native-enum-over-spatie SpatieEnumClassToEnumRector Ported
lint/php-8.1/prefer-readonly-property ReadOnlyPropertyRector Ported
lint/types/add-never-return-type ReturnNeverTypeRector Ported

Last updated on

Was this page helpful?