Reputation:
I'm getting this critical error when running phpDoc on a class file of mine:
No short description for property $id.
This is the relevant code:
/** @type int The user's id. */
private $id = 0;
I believe this is the way used in the documentation.
So what does this error mean and how can I solve it?
Upvotes: 1
Views: 280
Reputation: 158000
Use @var
instead of @type
:
/**
* @var integer The user's id.
*/
private $id = 0;
Upvotes: 1