Typehint Throwable

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-02-27 10:43:34 +01:00
parent 4077f16aec
commit 83eb548d23
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 2 additions and 2 deletions

View File

@ -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'];

View File

@ -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 = []);
}