Skip to content

Commit

Permalink
fixed abort params
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed May 3, 2017
1 parent 40e8f15 commit 5e542ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5e542ce

Please sign in to comment.