Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的类文件上运行 phpDoc 时出现此严重错误:
No short description for property $id.
这是相关代码:
/** @type int The user's id. */ private $id = 0;
我相信这是文档中使用的方式。
那么这个错误是什么意思,我该如何解决呢?
使用@var代替@type:
@var
@type
/** * @var integer The user's id. */ private $id = 0;