PhpStorm 2020.2 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 expression If 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: 08 May 2020