Created
January 14, 2015 18:45
-
-
Save Akii/aa01c60d4623018d9a85 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { | |
public function things(Bar $bar); | |
} | |
class Bar {} | |
class Baz extends Bar {} | |
class Möp implements Foo { | |
public function things(Bar $bar) { | |
echo "y no error"; | |
} | |
} | |
$blah = new Möp; | |
$blah->things(new Baz()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment