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 196714 - Code completion of magic method doesn't display parameters of magic methods
Summary: Code completion of magic method doesn't display parameters of magic methods
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
: 170988 200004 201766 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-15 08:39 UTC by Petr Pisl
Modified: 2011-09-08 07:45 UTC (History)
3 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 Petr Pisl 2011-03-15 08:39:45 UTC
Have a code:

<?php
/**
 * show off @method
 *
 * @method int borp() borp(int $int1, int $int2) multiply two integers
 */
class Magician
{
    function __call($method, $params)
    {
        if ($method == 'borp') {
            if (count($params) == 2) {
                return $params[0] * $params[1];
            }}}}
			
			
$m = new Magician();
$m->
?>

The code completion item for magic method borp() doesn't display parameters.
Comment 1 Petr Pisl 2011-03-15 08:40:37 UTC
This is probably issue of the php documentor parser in NB. It doesn't parse the parameters correctly.
Comment 2 OndrejBrejla 2011-03-15 08:56:48 UTC
*** Bug 170988 has been marked as a duplicate of this bug. ***
Comment 3 Petr Pisl 2011-06-09 15:07:20 UTC
Needs to be created new class for @method tag, that will keep information about return types, parameters and name. Then integrate this class to the current indexing infrastructure to provide the information into the index.
Comment 4 Ondrej Brejla 2011-08-23 14:40:45 UTC
Fixed in web-main: http://hg.netbeans.org/web-main/rev/a4d5806c9db6
Comment 5 Quality Engineering 2011-08-24 14:02:13 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a4d5806c9db6
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #196714 - Code completion of magic method doesn't display parameters of magic methods
Comment 6 Ondrej Brejla 2011-08-31 08:57:27 UTC
*** Bug 200004 has been marked as a duplicate of this bug. ***
Comment 7 Ondrej Brejla 2011-09-08 07:45:39 UTC
*** Bug 201766 has been marked as a duplicate of this bug. ***