Re: Declaration of Bar::__construct() must be compatible with that of Foo::__construct()
| From: | Derick Rethans | Date: | Thu, 26 Feb 2004 08:28:05 +0000 |
| Subject: | Re: Declaration of Bar::__construct() must be compatible with that of Foo::__construct() | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8158@lists.php.net to get a copy of this message | ||
On Thu, 26 Feb 2004, Marcus Boerger wrote:
> Hello Timm,
>
> well for normal methods we must do that. The derived class must support the
> same signature that the base class supports. In you example that would only
> work if the derived method would have a default parameter for the additional
> parameter:
I think this is only annoying users for nothing... I really don't see a
good reason on why to enforce this.
Derick