From 7a740d1d580dd75946f816790b8a7f421e102648 Mon Sep 17 00:00:00 2001 From: Taly Date: Fri, 26 Jan 2018 17:55:03 +0300 Subject: [PATCH] support php5.3: [] -> array() --- src/Hawk.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Hawk.php b/src/Hawk.php index 3a8290a..a1fa925 100644 --- a/src/Hawk.php +++ b/src/Hawk.php @@ -81,7 +81,7 @@ static public function enableHandlers($exceptions = TRUE, $errors = TRUE, $shutd * Construct Exceptions and send them to Logs */ static public function catchException ($exception) { - return self::prepare($exception->getCode(), $exception->getMessage(), $exception->getFile(), $exception->getLine(), []); + return self::prepare($exception->getCode(), $exception->getMessage(), $exception->getFile(), $exception->getLine(), array()); } /** @@ -98,7 +98,7 @@ static public function catchFatal () { $error = error_get_last(); if ( $error['type'] ) { - return self::prepare($error['type'], $error['message'], $error['file'], $error['line'], []); + return self::prepare($error['type'], $error['message'], $error['file'], $error['line'], array()); } }