Did anyone think about it ? Any opinions ? Cristiano Duarte.
"Cristiano Duarte" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hi all, > > Is this supposed to work? > > interface test { > function my_function ($mandatory_parameter); > } > > class test_class implements test { > function my_function ($mandatory_parameter, $optional_parameter = null) > { > } > } > > The test_class class implements correctly the 'test' interface since PHP > does not allow multiple explicit method declarations (explicit overloading). > > IMHO, if all additional parameters are optional, the interface commitment is > preserved. > > Cristiano Duarte -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php