如何在PHP Netbeans中键入提示静态方法

时间:2018-09-26 01:24:00

标签: laravel netbeans-8 type-hinting facade

如何在PHP Netbeans 8.2中提示静态方法?

我只找到一种提示对象方法的方法,这里是:

/** 
 * @method float functionName(float $param)

P.S。

我正在使用Laravel Facades,我想在其上键入静态方法。

enter image description here

1 个答案:

答案 0 :(得分:1)

这应该在最新的IDE中起作用:

* @method static float functionName(float $param)

static关键字未在phpdoc.org上记录,但声明它是在2.9.1中添加的:https://github.com/phpDocumentor/phpDocumentor2/issues/822