Community
Participate
Working Groups
Build Identifier: Build id: 20110218-0911 hi, see the difference between a static and a non-static method: abstract class MyAbstract { /** * @return MyAbstract */ static function getInstance(){} /** * @return MyAbstract */ function nonStaticMethod(){} } /** * @method Concrete getInstance() * @method Concrete nonStaticMethod() */ class Concrete extends MyAbstract { } $aa = new Concrete(); $aa-> // here works (with non static methods) Concrete:: //here i aspect to see "getInstance" but no code suggest is proposed thank you Reproducible: Always
still buggy in indigo/pdt3.0
By @method you override default PDT behaviour. PHPDoc @method and @property tags are for "magic" methods/properties. So please remove your @method lines , and try run ctr/cmd + space again ;)
In PDT 3.5 we introduced "@method static ReturnType methodName()" (like in PHPStorm and netbeans).
Works now with static (closing the bug): <?php abstract class MyAbstract { /** * * @return MyAbstract */ static function getInstance() {} /** * * @return MyAbstract */ function nonStaticMethod() {} } /** * * @method static Concrete getInstance() * @method Concrete nonStaticMethod() */ class Concrete extends MyAbstract { } $aa = new Concrete(); Concrete:: // Now shows "getInstance"