phpinspectionsea icon indicating copy to clipboard operation
phpinspectionsea copied to clipboard

Variable is Redundant bug

Open GTerigi opened this issue 2 years ago • 0 comments

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. RedundantBug 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). RedundantBug 2

Environment details

IntellijIdea 2022.1.3

GTerigi avatar Jul 13 '22 13:07 GTerigi