| Summary: | @method tag not working with static methods | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Giorgio Liscio <giorgio.liscio> |
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | silviya, zhaozhongwei, zulus |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
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"
|
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