phpinspectionsea
phpinspectionsea copied to clipboard
Variable is Redundant bug
Subject | Details |
---|---|
Plugin | Php Inspections (EA Extended) 4.0.7.1 |
Language level | PHP 7.2 |
Current behaviour
Hi and thanks in advantage for the great work you do with this plugins.
As you can see in the picture i declare a new php Object called $praticaR with the constructor, and the I immediatly use 2 method of such object.
The problem is that the inspect or sees it as redundant and when refractoring and reformatting the IDE replace it with the inline value in the first method (second picture), crashing the script because the second method call points to nothing ($praticaR is never declared).
Environment details
IntellijIdea 2022.1.3