Autocomplete PhpStorm和Yii,自动完成自己的模块
我将PhpStorm配置为以下内容: 自动完成现在为我工作。但是,当我编写自己的组件时,我无法获得方法、变量和属性 我所做的: 在capapplication.php中,我添加了:Autocomplete PhpStorm和Yii,自动完成自己的模块,autocomplete,yii,phpstorm,Autocomplete,Yii,Phpstorm,我将PhpStorm配置为以下内容: 自动完成现在为我工作。但是,当我编写自己的组件时,我无法获得方法、变量和属性 我所做的: 在capapplication.php中,我添加了: @property mixed testComponent 在myComponent.php中,我添加了: /* @property string $theVar * @method thefunction */ 好。。让我们尝试:1)而不是mixed testComponentput correct cla
@property mixed testComponent
在myComponent.php中,我添加了:
/* @property string $theVar
* @method thefunction
*/
好。。让我们尝试:1)而不是
mixed testComponent
put correct class而不是mixed
2)(它可以是打字错误或其他不同的东西,但是)PHPDoc注释有两个星号,而不是1:/**
3)使用适当的@方法
语法:在前面的注释之后,当您放置双“*”时,您将看到整个@var标记以粗体显示(只是核实一下)