note 53640 rejected from language.oop5.static by betz

From: Date: Wed, 08 Jun 2005 07:12:51 +0000
Subject: note 53640 rejected from language.oop5.static by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-90095@lists.php.net to get a copy of this message
Note Submitter: lindsay dot marshall at ncl dot ac dot uk ---- Note that you do not appear to be able to do this : abstract class a { abstract public static function foo(); public static function bar() { self::foo(); } } class b extends a { public static function foo(); } You get an error on the call of foo in the method bar. The implementation of static, especially with regard to class hierarchies, appears to be a bit inflexible....

« previous php.notes (#90095) next »