diff options
-rw-r--r-- | lib/private/log.php | 4 | ||||
-rw-r--r-- | lib/public/ilogger.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/log.php b/lib/private/log.php index 9a2a2da906e..bbdad9cf166 100644 --- a/lib/private/log.php +++ b/lib/private/log.php @@ -270,12 +270,12 @@ class Log implements ILogger { /** * Logs an exception very detailed * - * @param \Exception $exception + * @param \Exception | \Throwable $exception * @param array $context * @return void * @since 8.2.0 */ - public function logException(\Exception $exception, array $context = array()) { + public function logException($exception, array $context = array()) { $exception = array( 'Exception' => get_class($exception), 'Message' => $exception->getMessage(), diff --git a/lib/public/ilogger.php b/lib/public/ilogger.php index 6a4163875a9..fa947612fcd 100644 --- a/lib/public/ilogger.php +++ b/lib/public/ilogger.php @@ -135,10 +135,10 @@ interface ILogger { * ]); * </code> * - * @param \Exception $exception + * @param \Exception | \Throwable $exception * @param array $context * @return void * @since 8.2.0 */ - public function logException(\Exception $exception, array $context = array()); + public function logException($exception, array $context = array()); } |