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 269072 - Syntax error for correct code
Summary: Syntax error for correct code
Status: RESOLVED WORKSFORME
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-11-22 13:09 UTC by michal-h-pc.php
Modified: 2016-11-22 13:22 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 michal-h-pc.php 2016-11-22 13:09:54 UTC
Code (Valid PHP code):
(function($a){echo $a;})(1);

Netbeans mark line as error:
Syntax error
 unexpected:	(
 after:	)
Comment 1 Tomas Mysik 2016-11-22 13:22:32 UTC
This already works in the dev version of NetBeans.

Thanks for reporting.

Product Version: NetBeans IDE Dev (Build 20161115-b27d497872f5)
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-27-generic running on amd64; UTF-8; cs_CZ (nb)