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.
incorrect warning hint against reference (&) in foreach construct (Based on user's feedback) Go Options>Editor>Hints, Language PHP, check "Experimental" and "Variable might have not been initialized", then OK. Now editor shows hint warning to the following code. This code should be valid. $array_variable = array(1, 1); foreach ($array_variable as &$variable) { ; } This issue can reproduced on NetBeans 6.5 and also on Dev Build 200811200201.
Confirmed, should be easy to fix
http://hg.netbeans.org/web-main/rev/de3d449cf32d
Integrated into 'main-golden', will be available in build *200909230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/de3d449cf32d User: Radek Matous <rmatous@netbeans.org> Log: #153611 incorrect warning hint against reference (&) in foreach construct