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.
Product Version = NetBeans IDE 8.2 (Build 201705191307) Operating System = Windows 10 version 10.0 running on amd64 Java; VM; Vendor = 1.8.0_101 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13 Reproducibility: Happens every time STEPS: * Create a PHP function * Inside the function use code with 'foreach as list' like below * Turn on error checking for uninitialized variables if not enabled CODE: function foo($array){ foreach ($array as list($first,$second)){ echo $first." ".$second;//this is the problematic line of code } } ACTUAL: IDE shows warning stating that $first is an uninitialized variable EXPECTED: No error regarding $first or $second variable as both were initialized in the 'list' statement
Created attachment 165507 [details] IDE log
Created attachment 165508 [details] Screenshot of the actual problem