Skip to content

Instantly share code, notes, and snippets.

@kuzuha
Created March 29, 2012 02:38
Show Gist options
  • Save kuzuha/2232677 to your computer and use it in GitHub Desktop.
Save kuzuha/2232677 to your computer and use it in GitHub Desktop.
php interface declaration duplication.
<?php
interface Foo {
function test();
}
interface Bar {
function test();
}
interface Baz {
function test($arg);
}
class Hoge implements Foo, Bar {
function test() {
// valid!
}
}
class Fuga implements Foo, Bar, Baz {
function test() {
// invalid!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment