From fe492c6d2a712776eb9bf089eff5b4241f01ff3f Mon Sep 17 00:00:00 2001 From: Mattias Geniar Date: Wed, 28 Nov 2018 21:02:14 +0100 Subject: [PATCH] Fix missing namespace: Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined function BeyondCode\LaravelWebSockets\HttpApi\Controllers\Psr\str() --- src/HttpApi/Controllers/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpApi/Controllers/Controller.php b/src/HttpApi/Controllers/Controller.php index 86cfe0e..db97691 100644 --- a/src/HttpApi/Controllers/Controller.php +++ b/src/HttpApi/Controllers/Controller.php @@ -71,7 +71,7 @@ abstract class Controller implements HttpServerInterface 'error' => $exception->getMessage() ])); - $connection->send(Psr\str($response)); + $connection->send(GuzzleHttp\Psr7\str($response)); $connection->close(); }