#44822 [Com]: Interface documentation does not say interfaces can be extended
ID: 44822
Comment by: ross dot masters dot rm at googlemail dot com
Reported By: kalle@php.net
Status: Verified
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Submitted a fix to Kalle, don't have a CVS account so he can apply it
if it's alright.
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)