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 203740 - Class docblock should support @staticmethod
Summary: Class docblock should support @staticmethod
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Ondrej Brejla
Depends on:
Reported: 2011-10-14 15:43 UTC by j_schumann
Modified: 2014-01-05 17:56 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description j_schumann 2011-10-14 15:43:20 UTC
As discussed at I would favor the addition of this feature. @method documentations are not shown in autocompletion when entering 'Class_Name::'

Since @staticmethod is not defined in PHPDoc standards it would be a (much needed) individual add-on. While PHPDoc is no longer under active development and alternatives like DocBlox pop up it needs to be considered to add more PHP 5.3 features to the PHPDoc functionality of NetBeans.

@staticmethod should react on magic functions (__callstatic) but also overwrite inherited methods:

abstract class SingletonPrototype {
public static getInstance() {

 * @staticmethod MySingleton getInstance()
class MySingleton extends SingletonPrototype {

Currently it's not possible to access the methods of MySingleton through autocompletion because NetBeans reports the object to be a SingletonPrototype.
With the added @staticmethod it should report an instance of MySingleton with all it's further methods available.
Comment 1 wellic 2013-09-17 15:48:50 UTC
What about varsion 7.3?
Comment 2 alix 2014-01-05 17:56:48 UTC
i'm using 7.4 and it doesn't support @staticmethod or something like that for magic static methods.

Also there is another conversation about this:

Also there is no known phpdoc for magic static methods :