diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-20 17:49:58 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-20 17:56:08 +0200 |
commit | 069af51dd039fe9790b420b0e74289309a4952c4 (patch) | |
tree | ef2d14e3e7a7d6728b5eddc9da057db163b18b06 | |
parent | afad27fafd996f0e2e7117d9f431f9eb63736569 (diff) | |
download | nextcloud-server-069af51dd039fe9790b420b0e74289309a4952c4.tar.gz nextcloud-server-069af51dd039fe9790b420b0e74289309a4952c4.zip |
With PHP7 Throwable is the new base interface for all Exception and Error - we should be capable to log Throwable as well
-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()); } |