Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29901 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63548 invoked by uid 1010); 29 May 2007 22:17:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63533 invoked from network); 29 May 2007 22:17:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 May 2007 22:17:24 -0000 X-Host-Fingerprint: 89.190.198.137 unknown Received: from [89.190.198.137] ([89.190.198.137:12220] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/79-10662-276AC564 for ; Tue, 29 May 2007 18:17:23 -0400 Message-ID: <57.79.10662.276AC564@pb1.pair.com> To: internals@lists.php.net Date: Wed, 30 May 2007 01:17:20 +0300 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-Posted-By: 89.190.198.137 Subject: function overriding and class inheritance From: emil.vladev@gmail.com ("Emil Ivanov") Hi, I'll try get straight to the point: class C1 {} class C2 extends C1 {} abstract class Work1 { public function f1(C1 $c); } class Work2 extends Work1 { public function f1(C2 $c); } Here I get an an error regarding the prototype missmatch. Wouldn't it be nice to be able to tighted the requirement - C2 is still C1? Regards, Emil Ivanov