Created
March 29, 2012 02:38
-
-
Save kuzuha/2232677 to your computer and use it in GitHub Desktop.
php interface declaration duplication.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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