I am trying to Implement an interface twice which extends another interface but unable to figure out why i am getting a **Fatal Error**

Here's my code:

```
interface a {
    public function foo();
}

interface b extends a {
    public function baz(Baz $baz);
}

// This will work
class c implements b {
    public function foo() {
    }

    public function baz(Baz $baz) {
    }
}

// This will not work and result in a fatal error
class d implements b {
    public function foo() {
    }

    public function baz(Foo $foo) {
    }
}

```

I am getting this error message:

**Fatal error: Declaration of d::baz() must be compatible with b::baz(Baz $baz) in K:\xampp\htdocs\oop\Lec 2\index.php on line 26**