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.
Created attachment 157969 [details] Parsing error Netbeans highlights an error on below working code: <?php class TestClass { const OP_COMMANDS = array( "a" => 11111, "b" => 22222 ); public function output() { $v = TestClass::OP_COMMANDS["a"]; return $v; } } $t = new TestClass(); print $t->output(); Currently a parsing error appears on the following line: $v = TestClass::OP_COMMANDS["a"]; The code runs correctly without any error. I have attached the screenshot to show it well.
*** This bug has been marked as a duplicate of bug 250579 ***