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.

Bug 268652 - IIFE is spotted as syntax error
Summary: IIFE is spotted as syntax error
Status: RESOLVED DUPLICATE of bug 259111
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-24 07:49 UTC by udarkness
Modified: 2016-10-24 08:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description udarkness 2016-10-24 07:49:01 UTC
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
Comment 1 Tomas Mysik 2016-10-24 08:03:12 UTC
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 ***