Inherited static method does not display

20 views
Skip to first unread message

Barthélemy Laurans

unread,
May 21, 2014, 4:40:35 AM5/21/14
to yui...@googlegroups.com

Hi everyone,

I'm currently documenting my last PHP project using YUIdoc but I'm facing a problem.

Here is my code:

/**
* @class Item
* @static
*/

class Item {
   
/**
    * @method something
    * @static
    */

   
public abstract static function something();
}

/**
* @class MyItem
* @extends Item
*/

class MyItem extends Item {
   
// Implementation
   
public static function something() {
       
//Doing something
   
}
}

Doing this does not provide me any documentation for the MyItem class. If I remove the @static after the @method, then it works.

Any thought ?

Juan Ignacio Dopazo

unread,
May 22, 2014, 10:31:53 AM5/22/14
to yui...@googlegroups.com
YUIDoc makes an assumption based on how JavaScript works, where "static" methods are not usually inherited.

Juan
Reply all
Reply to author
Forward
0 new messages