我总是在我的 phpdoc 块中使用冒号。例如,而不是:
/** Some comment
*
*@private
*
*@param string $sTable The name of the table
*@return bool True otherwise void
*@example className->tableExists($sTable);
*@since date
*/
而不是上面的,我使用以下样式:
/** Some comment
*
* @private
*
* @param : string $sTable The name of the table
* @return : bool True otherwise void
* @example : className->tableExists($sTable);
* @since : date
*/
你看,我更喜欢用冒号分隔标签和描述。它更易于阅读并且具有更多风格。但我想知道这对 PHPdoc 解析 docbloc 有什么影响吗?