From 2bc5579ab431870f13fe6129ae840b1b031db40a Mon Sep 17 00:00:00 2001 From: Vinay Date: Fri, 2 Nov 2018 17:26:40 +0530 Subject: [PATCH] bug fix Error: Undefined variable: connectionLimit - under PHP 7.1 --- src/RatchetWsServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RatchetWsServer.php b/src/RatchetWsServer.php index bd59911..a88319d 100644 --- a/src/RatchetWsServer.php +++ b/src/RatchetWsServer.php @@ -103,7 +103,7 @@ protected function throttle() */ protected function limit() { - if ($connectionLimit = config('ratchet.connectionLimit') && $this->connections - 1 >= $connectionLimit) { + if (($connectionLimit = config('ratchet.connectionLimit')) && $this->connections - 1 >= $connectionLimit) { $this->console->info(sprintf('To many connections: %d of %d', $this->connections - 1, $connectionLimit)); $this->conn->send(trans('ratchet::messages.tooManyConnections')); $this->conn->close();