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.
/** * @method int foo() */ class A { /** * @static */ public static function __callStatic() {} } $a = new A(); $a->| // ALL OK. foo() method show A::| // NOT OK! foo() method not show
Yes, but how should NetBeans know that the declared @method is static? Maybe there should be some kind of a @staticmethod annotation, but there is no @staticmethod annotation in the phpDocumentor specification...so...
There is no need to specify a static or non-static method. I think that the hint must be output in any case. According to the PHP documentation for a maximum of bad: Calling non-static methods statically generates an E_STRICT level warning.
*** This bug has been marked as a duplicate of bug 170541 ***
Sorry, incorrect tab in browser.
There is an option in the Tools->Options->Editor Tab-> Code Completion Tab-> Choose PHP Language. You should see the option "Also Non-Static Methods after "::"" in Code Completion for Class Methods group.