I have this code:
/**
* Days to parse
* @var int
*/
const DAYS_TO_PARSE = 10;
...
I don’t think that using @var is correct for a constant and I don’t see any @constant PHPDoc tag. What is the correct way to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get them into phpDoc, use:
Usual construct: