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

Bug 335898

Summary: Method signature on autocomplete in subclass do not match that of superclass.
Product: z_Archived Reporter: Toni Uebernickel <tuebernickel>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: tuebernickel
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
A sample PHP Script, which triggers a fatal error. none

Description Toni Uebernickel CLA 2011-01-31 15:33:09 EST
Build Identifier: Build id: 20100917-0705

The method signature which code assist is writing to the editor does not match the actual signature of the superclass.

The default values are not generated.

Reproducible: Always

Steps to Reproduce:
1. Create a class with a method that has a parameter which has a default value.
2. Create a subclass of this class.
3. Start the signature of a method like "protected function exe" for a method "execute" in the subclass.
4. Catch Code Assist (wait or hit shortcut, doesn't matter)
5. The generated code does not contain the default value of the signature of the superclass.
Comment 1 Toni Uebernickel CLA 2011-01-31 15:37:56 EST
Created attachment 188003 [details]
A sample PHP Script, which triggers a fatal error.

PHP Fatal error:  Declaration of bar::execute() must be compatible with that of foo::execute() in different_signatures.php on line 14

Fatal error: Declaration of bar::execute() must be compatible with that of foo::execute() in different_signatures.php on line 14

Errors parsing different_signatures.php