#44822 [Opn->Ver]: Interface documentation does not say interfaces can be extended
ID: 44822
Updated by: kalle@php.net
Reported By: kalle@php.net
-Status: Open
+Status: Verified
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
Previous Comments:
------------------------------------------------------------------------
[2008-04-24 17:12:26] kalle@php.net
Description:
------------
The documentation does not say that interfaces can be extended, see the
example code below for an example.
An error is being throwed because the secondary interface declares
baz()
Reproduce code:
---------------
interface a
{
public function foo();
}
interface b extends a
{
public function baz(Baz $baz);
}
class c implements b
{
public function foo()
{
}
public function baz(Foo $foo)
{
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44822&edit=1
Thread (4 messages)