X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/1c43602f4bed60a84f47735ca8bc4a399018e013..refs/pull/3365/head:/app/Exceptions/JsonDebugException.php diff --git a/app/Exceptions/JsonDebugException.php b/app/Exceptions/JsonDebugException.php index e037fcb8e..e8d61305e 100644 --- a/app/Exceptions/JsonDebugException.php +++ b/app/Exceptions/JsonDebugException.php @@ -3,23 +3,25 @@ namespace BookStack\Exceptions; use Exception; +use Illuminate\Http\JsonResponse; class JsonDebugException extends Exception { - protected $data; + protected array $data; /** * JsonDebugException constructor. */ - public function __construct($data) + public function __construct(array $data) { $this->data = $data; + parent::__construct(); } /** * Covert this exception into a response. */ - public function render() + public function render(): JsonResponse { return response()->json($this->data); }