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.
example (PHP7): --- <?php namespace test { class Test { public function print($name) { // valid, but editor does not like :( echo $name; } } } namespace { $foo = new test\Test(); $foo->print('bar'); // works fine, as expected } problem: --- Editor points out unexpected { ... Since "print" or any other reserved php-function name you place as method name will fail the same way. solution: --- Editor has to consider the namespace for reserved names workaround: --- Use __call, but in this case no IDE autocomplete takes place
As static example there are 2 false positives. static example (PHP7): --- <?php namespace test { class Test { public static function print($name) { // false positive echo $name; } } } namespace { test\Test::print('bar'); // false positive here aswell }
It was already fixed. So please try to use a dev build[1]. [1] http://bits.netbeans.org/download/trunk/nightly/latest/ Thanks. *** This bug has been marked as a duplicate of bug 262141 ***
Thanks buddy :)