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

Summary: Only show possible class inheritances when using code-completion with the instanceof construct
Product: php Reporter: maghiel <maghiel>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal CC: amobilia, maghiel
Priority: P3    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Screenshoot

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