Bug 443587 - If namespace is used then CA doesn't propose type members
Summary: If namespace is used then CA doesn't propose type members
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-09 08:15 EDT by Michal Niewrzal CLA
Modified: 2020-05-14 11:40 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Niewrzal CLA 2014-09-09 08:15:57 EDT
To reproduce:
<?php
namespace myspace; // removing namespace fix issue

class Child
{
    public function run()
    {}
}
class Parents
{
    /**
     *
     * @var Child[]
     */
    public $children;
}
class School
{
    public function lesson(Parents $parents)
    {
        foreach ($parents->children as $child) {
            $child->| // <- Run CA - run() method should be available
        }
    }
}
Comment 1 Michal Niewrzal CLA 2014-09-09 09:19:59 EDT
Small patch: https://git.eclipse.org/r/#/c/33110/
Comment 3 Sylvia Tancheva CLA 2015-05-21 10:38:11 EDT
Works now. Closing