Fix call to deprecated JsonResponse::create() (#942)

This commit is contained in:
Joe Campo 2022-02-12 06:11:42 -05:00 committed by GitHub
parent e009061759
commit 605a7fa71d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ abstract class Controller implements HttpServerInterface
*/ */
protected function sendAndClose(ConnectionInterface $connection, $response) protected function sendAndClose(ConnectionInterface $connection, $response)
{ {
tap($connection)->send(JsonResponse::create($response))->close(); tap($connection)->send(new JsonResponse($response))->close();
} }
/** /**