Skip to content

Instantly share code, notes, and snippets.

@Akii
Created January 14, 2015 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akii/aa01c60d4623018d9a85 to your computer and use it in GitHub Desktop.
Save Akii/aa01c60d4623018d9a85 to your computer and use it in GitHub Desktop.
<?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