php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44822 Interface documentation does not say interfaces can be extended
Submitted: 2008-04-24 17:12 UTC Modified: 2008-08-11 22:18 UTC
From: kalle@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2008-04-24 17:12 UTC] 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)
	{
	}
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-10 18:22 UTC] ross dot masters dot rm at googlemail dot com
Submitted a fix to Kalle, don't have a CVS account so he can apply it if it's alright.
 [2008-08-11 22:18 UTC] kalle@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 06:00:01 2026 UTC