Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 371051

Summary: [PHP 5.4] Content Assist does not work after keyword "insteadof"
Product: z_Archived Reporter: Kalin <kalin.a>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: silviya, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.