Skip to content

Commit

Permalink
Merge pull request #15 from codex-team/talyguryn-patch-1
Browse files Browse the repository at this point in the history
support php5.3: [] -> array()
  • Loading branch information
talyguryn authored Jan 26, 2018
2 parents 40387a6 + 7a740d1 commit 8b0e7e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hawk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand All @@ -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());
}
}

Expand Down

0 comments on commit 8b0e7e9

Please sign in to comment.