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 - Return value description in method hint is formatted incorrectly
Summary: Return value description in method hint is formatted incorrectly
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: PHPDoc (show other bugs)
Version: 7.1.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-22 15:24 UTC by ianfp
Modified: 2016-09-22 16:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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