Inspectopedia Help

Variable is only used inside closure

Reports variables in closures' use list that are only used inside closure.

Inspection options

Option

Type

Default

Highlight only closures with multiple statements

Checkbox

true

Inspection Details

Available in:

PhpStorm 2023.3, Qodana for PHP 2023.3

Plugin:

PHP, 233.SNAPSHOT

Last modified: 13 July 2023