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

lint/types/add-param-type-variable-call

In the lint-strict preset. In Rector’s rector/type-declaration set. Unsafe fix: it can change behavior.

What it does

Add closure param object type based on the argument the assigned closure variable is called with

Configuration

[lint.rules]
"types/add-param-type-variable-call" = "error"

To skip it in some files or lines, add an override or an ignore comment.

Replaces

More lint/types rules · Edit this page

Last updated on

Was this page helpful?