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.
IIFE is a syntax error in netbeans but in PHP it is valid. Reproduce $a = (function() {return 1;})(); has a red exclamation mark in the left and "syntax error", but this code is valid in PHP7, it runs and the value of $a is 1
Already fixed in dev build, will be part of patch of NB 8.2. Thanks. Product Version: NetBeans IDE Dev (Build 20161018-2a7473dff97c) Java: 1.8.0_111; Java HotSpot(TM) 64-Bit Server VM 25.111-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_111-b14 System: Linux version 4.8.0-26-generic running on amd64; UTF-8; cs_CZ (nb) *** This bug has been marked as a duplicate of bug 259111 ***