diff --git a/src/Exceptions/ApiException.php b/src/Exceptions/ApiException.php index 277233b..fcdd573 100644 --- a/src/Exceptions/ApiException.php +++ b/src/Exceptions/ApiException.php @@ -35,15 +35,15 @@ public function __construct( /** * Convert exception to json response. */ - public function toResponse($request) + public function toResponse($request): ApiResponse { - $this->getResponse(); + return $this->getResponse(); } /** * Render exception as json response. */ - public function render() + public function render(): ApiResponse { return $this->getResponse(); }