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

From: Date: Fri, 27 Feb 2004 13:28:34 +0000
Subject: Re: Declaration of Bar::__construct() must be compatible
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-8213@lists.php.net to get a copy of this message
George Schlossnagle wrote:
On Feb 27, 2004, at 4:12 AM, Andi Gutmans wrote:
Hey, I'd like to come to some conclusion about the latest changes which break BC (trying to keep it short because some people here wrote long essays and it took me too much time to catch up :) : a) I agree that it doesn't make much sense for constructors, because one always creates concrete classes.
To play devil's advocate, If I'm creating objects through a factory, the unified constructor signature is very helpful. So put a constructor declaration into the interface and have that one validated.
Cheers, Michael

« previous php.internals (#8213) next »