Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Fix call to deprecated JsonResponse::create() (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
joecampo authored Feb 12, 2022
1 parent e009061 commit 605a7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ protected function handleRequest(ConnectionInterface $connection)
*/
protected function sendAndClose(ConnectionInterface $connection, $response)
{
tap($connection)->send(JsonResponse::create($response))->close();
tap($connection)->send(new JsonResponse($response))->close();
}

/**
Expand Down

0 comments on commit 605a7fa

Please sign in to comment.