Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
interface Data{
}
interface Key extends Data{
}
interface Value extends Data{
}
abstract class Teste{
public function meToo(Data $data)
{
}
}
class MeToo extends Teste{
public function meToo(Key $data)
{
}
}
class KeyClass implements Key {
}
$mt = new MeToo();
$mt->meToo(new KeyClass());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.