nitpick
This commit is contained in:
parent
3dfaa6901c
commit
94fbcf6264
|
|
@ -60,7 +60,10 @@ abstract class EchoController implements HttpServerInterface
|
|||
|
||||
function onError(ConnectionInterface $connection, Exception $exception)
|
||||
{
|
||||
if ($exception instanceof HttpException) {
|
||||
if (! $exception instanceof HttpException) {
|
||||
return;
|
||||
}
|
||||
|
||||
$response = new Response($exception->getStatusCode(), [
|
||||
'Content-Type' => 'application/json'
|
||||
], json_encode([
|
||||
|
|
@ -70,7 +73,6 @@ abstract class EchoController implements HttpServerInterface
|
|||
$connection->send(Psr\str($response));
|
||||
$connection->close();
|
||||
}
|
||||
}
|
||||
|
||||
public function ensureValidAppId(string $appId)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue