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 232831 - PHPDoc info display ignores method definition
Summary: PHPDoc info display ignores method definition
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 19:18 UTC by berniev
Modified: 2013-07-17 04:47 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 berniev 2013-07-16 19:18:26 UTC
Product Version = NetBeans IDE Dev (Build 201307152300)
Operating System = Linux version 3.0.0-32-generic-pae running on i386
Java; VM; Vendor = 1.7.0_21
Runtime = OpenJDK Client VM 23.7-b01

<?php
class Test {
}
class Test2{
    public function Func(Test $test = NULL) {
        ;		
    }
    public function FuncA() {
        $b = Func(new Test);
    }
}
?>

Currently Ctrl-hover over Func call in FuncA displays PHPDoc not found, which is correct
But there is information in the Func definition that is useful: 
 - The first parameter must be of type Test
 - There is one parameter
 - It's default is NULL
 - The function is declared public.

It is possible, often likely, that PHPDoc has have been incorrectly typed or be out of date and not reflect the actual definition.
The PHPDoc info is informational only, not influencing execution of the code, unlike the function definition.

Is it possible/desirable to parse this actual info into the PHPDoc display? 
Going one step further, highlighting inconsistencies, would make the whole idea more trustworthy and useful