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

Commit 605a7fa

Browse files
authored
Fix call to deprecated JsonResponse::create() (#942)
1 parent e009061 commit 605a7fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/API/Controller.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ protected function handleRequest(ConnectionInterface $connection)
215215
*/
216216
protected function sendAndClose(ConnectionInterface $connection, $response)
217217
{
218-
tap($connection)->send(JsonResponse::create($response))->close();
218+
tap($connection)->send(new JsonResponse($response))->close();
219219
}
220220

221221
/**

0 commit comments

Comments
 (0)