function overriding and class inheritance

From: Date: Tue, 29 May 2007 22:17:20 +0000
Subject: function overriding and class inheritance
Groups: php.internals 
Request: Send a blank email to internals+get-29901@lists.php.net to get a copy of this message
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

« previous php.internals (#29901) next »