Typehint Throwable

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/8553/head
Roeland Jago Douma 8 years ago
parent 4077f16aec
commit 83eb548d23
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 2
      lib/private/Log.php
  2. 2
      lib/public/ILogger.php

@ -331,7 +331,7 @@ class Log implements ILogger {
* @return void
* @since 8.2.0
*/
public function logException($exception, array $context = []) {
public function logException(\Throwable $exception, array $context = []) {
$level = Util::ERROR;
if (isset($context['level'])) {
$level = $context['level'];

@ -144,5 +144,5 @@ interface ILogger {
* @return void
* @since 8.2.0
*/
public function logException($exception, array $context = []);
public function logException(\Throwable $exception, array $context = []);
}

Loading…
Cancel
Save