Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiException toReponse method missing return statement #3

Closed
axmad386 opened this issue Jun 27, 2022 · 0 comments · Fixed by #4
Closed

ApiException toReponse method missing return statement #3

axmad386 opened this issue Jun 27, 2022 · 0 comments · Fixed by #4
Labels
bug Something isn't working

Comments

@axmad386
Copy link
Member

/**
* Convert exception to json response.
*/
public function toResponse($request)
{
$this->getResponse();
}

this will break in laravel Exception Handler because toResponse should return JsonResponse instead of null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant