interface method redeclaration

php.internals

George Schlossnagle

21 years ago
Hi, Coogle brought this up, shouldn't this be ok? interface Bar { function foo(); } interface Baz { function foo(); } class A implements Bar, Baz { function foo() {} } Throws a redclaration error in 5.0.1. George Schlossnagle -- Prinicipal Consultant -- OmniTI Computer Consulting -- http://www.omniti.com

Andrey Hristov

21 years ago
George Schlossnagle wrote:
> Hi, > > Coogle brought this up, shouldn't this be ok? > > interface Bar { > function foo(); > } > > interface Baz { > function foo(); > } > > class A implements Bar, Baz { > function foo() {} > } > > Throws a redclaration error in 5.0.1. > > > George Schlossnagle > > -- Prinicipal Consultant > -- OmniTI Computer Consulting > -- http://www.omniti.com >
even function foo() {} in A is not needed at all. Andrey