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.
Invalid editor warnings are shown if you use variable variables in php. Here is a simple (reproducible) example: $a = 'hello'; $$a = ' world'; echo $hello; // produces 'world' echo $a . $$a; // produces 'hello world' The editor shows warnings as follows: - Lines 1 & 2 "You should only use one assignment (2 used)..." - Line 3 "$hello is not initialised" (it is initialised and has a value 'world').
(In reply to sherif.onion from comment #0) > - Lines 1 & 2 "You should only use one assignment (2 used)..." $$a should be ignored. > - Line 3 "$hello is not initialised" (it is initialised and has a value > 'world'). Probably, it's hard to fix this(Line3). Thanks.
IMHO using "$$" is not a good practice, it makes code really difficult to read and understand. Thanks for reporting.