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 201766 - Display in auto-comletion dialog passing arguments to method defied as @method
Summary: Display in auto-comletion dialog passing arguments to method defied as @method
Status: RESOLVED DUPLICATE of bug 196714
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2011-09-07 16:31 UTC by fruit
Modified: 2011-09-08 10:01 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fruit 2011-09-07 16:31:00 UTC
Good evening!

There is only one frustrating thing for me in NetBeans IDE since I started using it for 3 years ago. 
That is the invisibility of acceptable variables I can pass to method that was declared as PHPDoc @method attribute.


/**
 * @method int addFlights() addFlights(array $flights, $ignore = true) Adds flights to the Airplain
 */
class Airplain
{
  /**
   * @return bool
   */
  public function configure (stdClass $flightCode)
  {
    // ...
  }

  public function __call ($method, $args)
  {
    // ...
  }
}


When auto-completion dialog triggered after "$f14->" there will be 3 methods:

$f14 = new Airplain();
$f14->
    +--------------------------------------------+
    + * __call($method, $args)          Airplain +
    + * addFlights()                    Airplain +
    + * removeFlight(strClass $setup)   Airplain +
    +--------------------------------------------+

There are missing for me "addFlights" method arguments.

Expecting result of auto-completion dialog is:

$f14 = new Airplain();
$f14->
    +--------------------------------------------------------+
    + * __call($method, $args)                      Airplain +
    + * addFlights(array $flights, $ignore = true)  Airplain +
    + * removeFlight(strClass $setup)               Airplain +
    +--------------------------------------------------------+


If you decide to implement it, you will be first have implemented it in PHP-IDEs.

Based on http://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial_tags.method.pkg.html it is allowed to declare variables in PHPDoc @method section.

Thanks for the attention.
Comment 1 fruit 2011-09-07 16:37:16 UTC
Sorry, I made some mistakes in examples: "removeFlight" should be "configure", and "$flightCode" should be "$setup".
Comment 2 Ondrej Brejla 2011-09-08 07:45:39 UTC
It has been fixed few days ago and it will be in NB 7.1 (http://netbeans.org/bugzilla/show_bug.cgi?id=196714). You can try it when yoou download NB7.1 development version (http://bits.netbeans.org/download/trunk/nightly/latest/). 

Really, any other IDE doesn't know that?

*** This bug has been marked as a duplicate of bug 196714 ***
Comment 3 fruit 2011-09-08 10:01:52 UTC
(In reply to comment #2)
> It has been fixed few days ago and it will be in NB 7.1
> (http://netbeans.org/bugzilla/show_bug.cgi?id=196714). You can try it when yoou
> download NB7.1 development version
> (http://bits.netbeans.org/download/trunk/nightly/latest/). 
> 
> Really, any other IDE doesn't know that?
> 
> *** This bug has been marked as a duplicate of bug 196714 ***

Sorry about duplicating issue (I have really checked (not carefully) for duplicates before).

I have checked this IDE for this feature and they does not support it:

- Zend Studio 8.0.1 (latest) 
- PDT Eclipse (latest)
- Komodo IDE 6.1 (latest)
- kdewebdev (Quanta Plus) (latest)