Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 371051 - [PHP 5.4] Content Assist does not work after keyword "insteadof"
Summary: [PHP 5.4] Content Assist does not work after keyword "insteadof"
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 04:43 EST by Kalin CLA
Modified: 2020-05-14 11:17 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 Kalin CLA 2012-02-09 04:43:43 EST
Have a php 5.4 project created.
Create a php file in the project:

<?php
trait A {
    public function smallTalk() {
        echo 'a';
    }
    public function bigTalk() {
        echo 'A';
    }
}

trait B {
    public function smallTalk() {
        echo 'b';
    }
    public function bigTalk() {
        echo 'B';
    }
}

class Talker {
    use A, B {   	
        B::| // <-- Case 1. Invoke content Assist at cursor position"|"
        A::bigTalk insteadof | // <-- Case 2. Invoke content Assist at cursor position"|"   


Expected:
Case 1: 
smallTalk()
bigTalk()

should be suggested.

Case 2:
B should be suggested.


Actual:
The mentioned items are not listed in Content Assist
Comment 1 Zhongwei Zhao CLA 2012-07-25 03:13:54 EDT
fixed
Comment 2 Sylvia Tancheva CLA 2012-08-09 07:03:43 EDT
Verified. Closing.