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 204996 - Only show possible class inheritances when using code-completion with the instanceof construct
Summary: Only show possible class inheritances when using code-completion with the ins...
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 15:08 UTC by maghiel
Modified: 2016-08-31 15:38 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Screenshoot (42.42 KB, image/png)
2016-08-31 15:37 UTC, amobilia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maghiel 2011-11-11 15:08:15 UTC
See: http://netbeans.org/bugzilla/show_bug.cgi?id=204958

Create class:
<?php
class Foo 
{
} 
?>

Create class:
<?php
class Baz extends Foo
{
}
?>

Create class:
<?php
class Bar
{
    function test(Foo $obj)
    {
        if ($obj instanceof |
    }
}
?>

Result: 
Only Exception classes are suggested

Desired result:
Only Foo and classes inheriting Foo are suggested (in other words: Foo and Baz
are suggested)
Comment 1 amobilia 2016-08-31 15:37:47 UTC
Created attachment 161850 [details]
Screenshoot
Comment 2 amobilia 2016-08-31 15:38:36 UTC
Bug is resolved in the 8.2 dev 201608290002

I don't know if I could close this bug myself or if it's needed that the Netbeans team close the ticket