This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 214635

Summary: Return value description in method hint is formatted incorrectly
Product: php Reporter: ianfp
Component: PHPDocAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal CC: amobilia, ianfp
Priority: P3    
Version: 7.1.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ianfp 2012-06-22 15:24:33 UTC
If I add doc comments to my method like this:

/**
 * @return int
 *  The return value
 */
public function myMethod() { ... }

Then the "hint" that appears when I hold CTRL and hover over a call to that method looks like this:

Returns:
  Type: int The
  Description: return value


But if I put the description on the same line, it works properly:

/**
 * @return int The return value
 */
public function myMethod() { ... }

Returns:
  Type: int
  Description: The return value


Shouldn't NetBeans allow me to format my doc comments either way?
Comment 1 Ondrej Brejla 2012-06-25 07:43:53 UTC
It's reproducible. That annotation parser doesn't handle these multi-line descriptions. It's not a common use case.
Comment 2 amobilia 2016-09-22 16:53:21 UTC
Reproductible in 8.2rc / Dev 201609210002 

In case of multi lines @return, all the phpdoc is now not displayed
=> P3