Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318888 - [Content Assist] no content assist for special methods
Summary: [Content Assist] no content assist for special methods
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 09:17 EDT by Roy Ganor CLA
Modified: 2020-05-14 10:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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