Skip to content

Commit

Permalink
fix Response::toResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Jan 14, 2024
1 parent 8550511 commit e82854d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateway/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function toResponse($request): BaseResponse
if (! is_null($this->responseResolver)) {
return call_user_func_array($this->responseResolver, [$this->url, $this->data]);
} elseif ($request->wantsJson()) {
new JsonResponse($this->toArray());
return new JsonResponse($this->toArray());
}

return new RedirectResponse($this->url);
Expand Down

0 comments on commit e82854d

Please sign in to comment.