#44822 [Com]: Interface documentation does not say interfaces can be extended

From: Date: Sun, 10 Aug 2008 18:22:10 +0000
Subject: #44822 [Com]: Interface documentation does not say interfaces can be extended
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1085@lists.php.net to get a copy of this message
 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)

« previous php.doc.bugs (#1085) next »