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

Bug 318888

Summary: [Content Assist] no content assist for special methods
Product: z_Archived Reporter: Roy Ganor <ganoro>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: gadi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Roy Ganor CLA 2010-07-05 09:17:48 EDT
Consider the following code:
------------------------
<?php
class toto {
	
	public function __toString() {
		echo "toto";
	}
	
	public function myfunc() {
              $this-> // No CA for magic methods here
	}
}

$o = new toto ();
$o-> // No CA for magic methods here

?>
------------------------
Comment 1 Zhongwei Zhao CLA 2010-07-05 22:18:12 EDT
Hi Roy

I saw the following code in ClassMethodsStrategy(line 93)

if (!magicMethods.contains(method.getElementName())
							&& !isFiltered(method, concreteContext)) {
						result.add(method);
					}
					
					
Why?Is it intentional?
Comment 2 Zhongwei Zhao CLA 2010-07-15 09:31:33 EDT
fixed in head,and all magic methods will be listed in the bottom of the proposal list.
Comment 3 Gadi Goldbarg CLA 2010-08-26 10:36:35 EDT
[Petyo Tanchev]

Tested on 2.2.1 SR1
Fixed