Re: Interface inheritance

From: Date: Mon, 19 Apr 2004 10:01:16 +0000
Subject: Re: Interface inheritance
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-9364@lists.php.net to get a copy of this message
Zeev Suraski wrote:
Any method that implements (directly or indirectly) an interface method or an abstract method, will have implementation checks fully enforced, with an E_COMPILE_ERROR emitted in case of an error.
Excuse my ignorance: What is defined as fully implementing the interface? I guess all methods have to be implemented with all the parameters having the same type if specified, right? What about extending the parameter set, especially with default values? E.g. is foo(A $a, $newparam = 'false) valid for foo(A $a)? - Chris

« previous php.internals (#9364) next »