Fix call to deprecated JsonResponse::create() (#942)
This commit is contained in:
parent
e009061759
commit
605a7fa71d
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue