From cd2ed5526ed850cd10e555b1a6c1059a9c1fe5d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Campitelli?= <1877191+vcampitelli@users.noreply.github.com> Date: Thu, 21 Mar 2019 15:10:55 -0300 Subject: [PATCH] ErrorHandler: Renaming \Exception to \Throwable because PHP 7 throws Errors too --- php/ErrorHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/ErrorHandler.php b/php/ErrorHandler.php index 7c5f1a7..d7d4159 100644 --- a/php/ErrorHandler.php +++ b/php/ErrorHandler.php @@ -40,9 +40,9 @@ public static function onError($code, $message, $file, $line, $context) /** * Display uncaught exception in JSON. * - * @param \Exception $exception + * @param \Throwable $exception */ - public static function onException(\Exception $exception) + public static function onException(\Throwable $exception) { die( json_encode(