diff --git a/helpers.php b/helpers.php index 4820c3b3..f84fd736 100644 --- a/helpers.php +++ b/helpers.php @@ -78,12 +78,12 @@ function json(array $content = [], $statusCode = Response::HTTP_OK) } /** - * @param $message * @param $statusCode + * @param $message * * @throws Exception */ -function abort($message, $statusCode) +function abort($statusCode, $message = null) { throw new Exception((is_null($message) ? Response::$statusTexts[$statusCode] : $message), $statusCode); }