From f6e9c233126c2ef59b5c7ce1c2f8be8c7d1b97d6 Mon Sep 17 00:00:00 2001 From: Josef Vrba Date: Fri, 6 Jan 2017 09:40:08 +0100 Subject: [PATCH 1/2] #37631 - support logging of PHP7 Errors --- src/main/php/LoggerLoggingEvent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/php/LoggerLoggingEvent.php b/src/main/php/LoggerLoggingEvent.php index 29ba3610..b739a4ca 100644 --- a/src/main/php/LoggerLoggingEvent.php +++ b/src/main/php/LoggerLoggingEvent.php @@ -133,7 +133,7 @@ public function __construct($fqcn, $logger, LoggerLevel $level, $message, $timeS $this->timeStamp = microtime(true); } - if ($throwable !== null && $throwable instanceof Exception) { + if ($throwable !== null) { $this->throwableInfo = new LoggerThrowableInformation($throwable); } } From 5446e61181b82417d80c9aba12c0956ea998e4bb Mon Sep 17 00:00:00 2001 From: Josef Vrba Date: Fri, 6 Jan 2017 09:43:39 +0100 Subject: [PATCH 2/2] #37631 - support logging of PHP7 Errors --- src/main/php/LoggerThrowableInformation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/php/LoggerThrowableInformation.php b/src/main/php/LoggerThrowableInformation.php index 20bf7582..fb4abd0b 100644 --- a/src/main/php/LoggerThrowableInformation.php +++ b/src/main/php/LoggerThrowableInformation.php @@ -38,7 +38,7 @@ class LoggerThrowableInformation { * @param $throwable - a throwable as a exception * @param $logger - Logger reference */ - public function __construct(Exception $throwable) { + public function __construct($throwable) { $this->throwable = $throwable; }