php 5 interfaces

From: Date: Thu, 20 Jan 2005 12:27:32 +0000
Subject: php 5 interfaces
Groups: php.general 
Request: Send a blank email to php-general+get-206826@lists.php.net to get a copy of this message
Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash with message Fatal error: Access type for interface method MyInterface::myMethod() must be omitted in somefile.php on line NN Why I'm not able to clarify call's type (static) for methods in interface? I'm predict closely that method myMethod() in all classes which implements MyInterface must be called statically. A little trick allowed to me to resolve this problem, but my question more ideological than practical. Thanks -- RE5PECT Sergio Gorelyshev

« previous php.general (#206826) next »