Hey Michael, That would trigger a fatal error because the signatures are not compatible.
Il giorno mar 11 apr 2017 alle ore 23:01 Michael Mayer < mich...@schnittstabil.de> ha scritto: > Compatibility ftw! > > Hence, a new namespace and a new composer package – I do not care about > the concrete new names though: > > namespace Psr\Log; > > interface LoggerInterface > { > public function alert($message, array $context = array()); > } > > > namespace Psr\Log\V2; > > interface LoggerInterface > { > public function alert(string $message, array $context = array()):void; > } > > class Logger implements \Psr\Log\LoggerInterface, \Psr\Log\V2\ > LoggerInterface > { > public function alert($message, array $context = array()):void > { > // … > return; > } > } > > Bests, > Michael Mayer > -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscr...@googlegroups.com. To post to this group, send email to php-fig@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAFojS1tTZ9ayvQ%2B7tO-za07YFcdj%2BzQYn%2Bc5v8Ax9ARDvuyKQQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.