What is the correct way to write PHPDocs for constants?

The PHP-FIG suggests using @var for constants.

7.22. @var

You may use the @var tag to document the “Type” of the following
“Structural Elements”:

  • Constants, both class and global scope
  • Properties
  • Variables, both global and local scope

Syntax

@var ["Type"] [element_name] [<description>]

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)