Bug 269722 - Not duplicate methods with one name
Summary: Not duplicate methods with one name
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux-GTK
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-23 13:48 EDT by Anton Danilchenko CLA
Modified: 2020-05-14 11:18 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 Anton Danilchenko CLA 2009-03-23 13:48:11 EDT
Not duplicate methods with one name. If I create two or more methods with same name - this incorrect!

Code:
class {
  public function test() {
  }
  public function test() {
  }
  public function test() {
  }
}

Actual result: parset no show errors
Expected result: parser show error message with second and third method definition
Comment 1 Roy Ganor CLA 2009-03-23 14:05:20 EDT
Actually there is nothing wrong with the parser as PHP engine parses this without any problem.
This is checked on runtime, something that we don't currently do.

This is a good enhancement though...
Comment 2 Eclipse Genie CLA 2020-01-09 15:03:22 EST
New Gerrit change created: https://git.eclipse.org/r/155574