This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
On a PHP functions and methods, create a var without use it raise a "unnused" highlight on the editor, but this feature does not cat highlight variables ununsed but the publisher has not find cases of variables that were not used, but were used on allocations in a more than once time. Examples: <?php function a() { $test = 1; //highlight unnused var } function b() { $test = 1; $test ++; //do not highlight $test } in practice, this variable is not being used because the assignment it is not serving.
Works for me properly in 7.2. In function a(), $test variable is underlined as unused. In function b(), NO variable is underlined, because $test variable which is declared by its first assignment is then used in an unary incrementation. So no "Unused variable" hint occurs in NB 7.2.