PhpStorm 2019.3 Help

Code Inspection: Variable declaration can be merged with the first assignment to the variable

This inspection suggests to move variables closer to their usages joining with the initializer expressionIf a variable is declared without an initializer, and it is used in the code much further or in a single nested scope, such variable may be joined with the first assignment as an initializer.

Last modified: 10 February 2020