我在代码中有这个
/**
* @method static 'string myMethod()
*/
我没有看到myMethod()在任何地方定义,但我看到了用法
static::myMethod();
我在这里错过了什么。
也许是这个?
http://www.php.net/manual/en/language.oop5.overloading.php#object.callstatic
还是家长班?
我在代码中有这个
/**
* @method static 'string myMethod()
*/
我没有看到myMethod()在任何地方定义,但我看到了用法
static::myMethod();
我在这里错过了什么。
也许是这个?
http://www.php.net/manual/en/language.oop5.overloading.php#object.callstatic
还是家长班?