Re: Use of 'self' in static function in subclass
| From: | Hans Lellelid | Date: | Tue, 01 Jun 2004 14:12:48 +0000 |
| Subject: | Re: Use of 'self' in static function in subclass | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10207@lists.php.net to get a copy of this message | ||
Ferdinand Beyer wrote:
On 1 Jun 2004 at 15:21, Stephan Schmidt wrote:Yes, I agree that design-wise that would be better -- but it will still fail w/ E_FATAL in PHP if the method is abstract ("cannot call abstract method Foo::Baz() in ...."). HansFurthermore this renders the template-method pattern quiteuseless, soIMHO it should be changed.He should define an abstract method Foo::Baz() here.