annotating a local variable in php

后端 未结 2 1667
悲&欢浪女
悲&欢浪女 2021-01-31 16:46

I am using Eclipse PDT and I want to annotate a local variable using Phpdoc.

All I see is that I can annotate the variables/properties of a class using @var

2条回答
  •  伪装坚强ぢ
    2021-01-31 17:21

    This is an old question, but only for reference. You must include the Use statement for the Type in current file in order to @var annotation work

    getName();
    

提交回复
热议问题