Re: Declaration of Bar::__construct() must be compatible

From: Date: Fri, 27 Feb 2004 09:58:27 +0000
Subject: Re: Declaration of Bar::__construct() must be compatible
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-8203@lists.php.net to get a copy of this message
On Friday 27 February 2004 10:41, Ferdinand Beyer wrote: > On 27 Feb 2004 at 11:12, Andi Gutmans wrote: > > Comments? (Please try to keep them short :) > > I think we should just drop the signature check. Interfaces may > include a signature for better readability but the engine should ignore > them. PHP4 class trees work fine even without strict inheritance > checks. Mhm. Does a signature make sense if the engine ignores it anyway? For better readability one can use phpdoc/doxygen like comment blocks. > Because of PHP's loose character, we cannot force the user to use > the strict signature anyway. And since we have no overloading > support, but var_args, strict checks make not much sense to me. Agree. > -- > Ferdinand Beyer > <fb@fbeyer.com> cheers, Pat

« previous php.internals (#8203) next »