Created attachment 162658 [details]
8.2 complaining about a constant referenced within a namespace
Syntax checking apparently does not put up with constant arrays in a NAMESPACE. It's the leading backslash what is causing problems.
How to reproduce:
1) create a new PHP 5.6 project, with UTF-8.
2) create a new file "test.php"
3) write: $a = \TEST;
4) you get the syntax error in the screenshot
Product Version: NetBeans IDE 8.2 (Build 201609300101)
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Windows 7 version 6.1 running on amd64; UTF-8; cs_CZ (nb)
Thanks for reporting!
When this fix will be available in the dev build, the comment for it is added here. Then, could you verify it in the dev version?
Thanks for the fix, Junichi!
Integrated into 'main-silver', will be available in build *201611090620* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Junichi Yamamoto <email@example.com>
Log: #268712 - "Unexpected '[' after identifier" with constant array in a namespace
I have just verified the issue with NetBeans IDE Dev (Build 201611110001) and I can confirm that it has been resolved. Thank you!
Thanks for verification!
Transplanted to the releases repo branch release82: