diff --git a/src/Console/Commands/StartServer.php b/src/Console/Commands/StartServer.php index 03d6e013c7..c06ed21ea9 100644 --- a/src/Console/Commands/StartServer.php +++ b/src/Console/Commands/StartServer.php @@ -288,7 +288,7 @@ protected function triggerSoftShutdown() // Get all local connections and close them. They will // be automatically be unsubscribed from all channels. $channelManager->getLocalConnections() - ->then(function ($connections) use ($channelManager) { + ->then(function ($connections) { foreach ($connections as $connection) { $connection->close(); }