Skip to content

Commit

Permalink
Merge pull request #9 from designvoid/designvoid-patch-1
Browse files Browse the repository at this point in the history
Update for the change in the Laravel Handler
  • Loading branch information
sfelix-martins authored Jul 14, 2020
2 parents 7b1c5a1 + 9289852 commit 182914b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/JsonHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

namespace SMartins\Exceptions;

use Exception;
use SMartins\Exceptions\Handlers\Handler;
use Throwable;

trait JsonHandler
{
/**
* Handle the json response. Check if exception is treated. If true call
* the specific handler. If false set the default response to be returned.
*
* @param \Exception $exception
* @param \Throwable $exception
*
* @return \Illuminate\Http\JsonResponse
*/
public function jsonResponse(Exception $exception)
public function jsonResponse(Throwable $exception)
{
$handler = new Handler($exception);

Expand Down

0 comments on commit 182914b

Please sign in to comment.