How can I mark up constants using PHPDoc? What @-tag should I use? I’ve thought of @var, but that’s not appropriate.
Share
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.
The short answer is that there isn’t one. And there doesn’t need to be one either. The documentation generator is smart enough to be able to see the constant declaration. So just put the summary there without any @-tags. That should be all that you need to do…