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

rector-laravel/laravel-type-declarations set

rector-laravel’s laravel-type-declarations set: the Pun lint rules its Rector rules map to, and nothing else.

[lint]
sets = ["rector-laravel/laravel-type-declarations"]

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 (7)

Rule Rector rules Status
lint/laravel/add-legacy-relation-generics AddLegacyGenericReturnTypeToRelationsRector Ported
lint/laravel/add-new-relation-generics AddNewGenericReturnTypeToRelationsRector Ported
lint/laravel/add-query-closure-type EloquentWhereTypeHintClosureParameterRector Ported
lint/laravel/add-relation-generics AddGenericReturnTypeToRelationsRector Ported
lint/laravel/add-relation-query-closure-type EloquentWhereRelationTypeHintingParameterRector Ported
lint/laravel/add-scope-builder-generics AddGenericBuilderToScopesRector Ported
lint/laravel/add-tap-closure-type TypeHintTappableCallRector Ported

Last updated on

Was this page helpful?