Hello, On 8/7/06, Marcus Boerger <[EMAIL PROTECTED]> wrote:
> class Foo { > public interface function myFoo($x) { echo $x; } // strict method signature enforced > } > class Bar extends Foo { > public function myFoo() { echo "bar"; } // this would be E_FATAL > } > class Qux extends Foo { > public interface function myFoo($x) { echo $x; } // this is okay. > } Hmm i see some elegance here :-)
This is exactly what has been proposed last week, add a keyword to the declaration to mark a method as strict. And I'm in favour of this solution. --Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php