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 268163 - Anonymous PHP7 function definition with invocation is flagged as syntax error
Summary: Anonymous PHP7 function definition with invocation is flagged as syntax error
Status: RESOLVED DUPLICATE of bug 259111
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-23 03:29 UTC by gibster
Modified: 2016-09-23 05:17 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 gibster 2016-09-23 03:29:39 UTC
Adding this statement is flagged as syntax error:

(function() {})();

This should be recognized as correct syntax in PHP7. Same if the anonymous function has a body.
Comment 1 Tomas Mysik 2016-09-23 05:17:58 UTC

*** This bug has been marked as a duplicate of bug 259111 ***