How to disable command line syntax in doxygen

I am having a problem with the PHP 5.3 name extension and Doxygen comments.

Example:

/**
 * Sample Method
 *
 * @param string $output
 * @return \Project\Lib\Rest
 */

Doxygen gives me the following warnings:

warning: Found unknown command `\Project'
warning: Found unknown command `\Lib'
warning: Found unknown command `\Rest'

What can I do to fix this or disable \ commands and use @commands

+6
source share
1 answer

Try performing a backslash, i.e. use

/**
 * Sample Method
 *
 * @param string $output
 * @return \\Project\\Lib\\Rest
 */

\\ is actually a doxygen command that just prints a backslash.

See also PHP Documentation with Doxygen: Pros and Cons :

/**
 * Sample Method
 *
 * @param string $output
 * @return Project::Lib::Rest
 */
+6
source

All Articles