From 605a7fa71ddabfffe381b079acc21403c7547ea2 Mon Sep 17 00:00:00 2001 From: Joe Campo Date: Sat, 12 Feb 2022 06:11:42 -0500 Subject: [PATCH] Fix call to deprecated JsonResponse::create() (#942) --- src/API/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/Controller.php b/src/API/Controller.php index 4647ad4534..c413e9c1bf 100644 --- a/src/API/Controller.php +++ b/src/API/Controller.php @@ -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(); } /**