Re: Declaration of Bar::__construct() must be compatible with that of Foo::__construct()
| From: | Marcus Boerger | Date: | Thu, 26 Feb 2004 19:41:54 +0000 |
| Subject: | Re: Declaration of Bar::__construct() must be compatible with that of Foo::__construct() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8181@lists.php.net to get a copy of this message | ||
Hello Andrey,
Thursday, February 26, 2004, 1:08:19 PM, you wrote:
> Marcus Boerger wrote:
>> Hello Timm,
>>
>> i had the same expirience today too. And also for me it makes not much
>> sense. The constructor shouldn't check inheritance rules. And as a
>> consequence maybe interfaces shouldn't allow constructors.
>>
> Does inheritance include visibility rules? ;)
You can only increase wivibility (pretected-> public) in a strict IS-A
modell as PHP uses.
--
Best regards,
Marcus mailto:helly@php.net