Skip to content

Commit

Permalink
Merge pull request #219 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo authored Jan 14, 2024
2 parents 8550511 + e82854d commit ca93ce1
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 ca93ce1

Please sign in to comment.