diff --git a/src/API/Controller.php b/src/API/Controller.php index 4647ad4..c413e9c 100644 --- a/src/API/Controller.php +++ b/src/API/Controller.php @@ -215,7 +215,7 @@ abstract class Controller implements HttpServerInterface */ protected function sendAndClose(ConnectionInterface $connection, $response) { - tap($connection)->send(JsonResponse::create($response))->close(); + tap($connection)->send(new JsonResponse($response))->close(); } /**