Hi. I have suggestion for psr-3 context's key 'exception'. Could be change allow `\Throwable` to accept ?
current psr-3 https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md > 'exception' key is actually an Exception. I think this was designed for PHP 5 age. But, recent Monolog 's code is > if (isset($context['exception']) && $context['exception'] instanceof Throwable) { https://github.com/Seldaek/monolog/blob/2.2.0/src/Monolog/Handler/RollbarHandler.php#L92 Other LoggerInterface implementer would be confused. "should it be strictly `\Exception` ? or `\Throwable` ?". -- And from strict analysis tool usage (array-shapes stubs), it also needs to be clear \Exception or \Throwable. I have several implmentaion as example, array{exception?: \Exception} $context https://github.com/struggle-for-php/sfp-psalm-psr-log-plugin/blob/0.2.0/stubs/LoggerInterface.php array{exception?: \Throwable} $context https://github.com/struggle-for-php/sfp-psalm-psr-log-plugin/blob/0.2.0/throwable-stubs/LoggerInterface.php -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/adffa7a4-c59c-4106-8ee5-9cf0db479e02n%40googlegroups.com.