diff --git a/src/ChannelManagers/LocalChannelManager.php b/src/ChannelManagers/LocalChannelManager.php index fd824bc169..3cacbf4f17 100644 --- a/src/ChannelManagers/LocalChannelManager.php +++ b/src/ChannelManagers/LocalChannelManager.php @@ -174,9 +174,9 @@ public function unsubscribeFromAllChannels(ConnectionInterface $connection): Pro $this->getLocalChannels($connection->app->id) ->then(function ($channels) use ($connection) { collect($channels) - ->each(function (Channel $channel) use ($connection) { - $channel->unsubscribe($connection); - }); + ->each(function (Channel $channel) use ($connection) { + $channel->unsubscribe($connection); + }); collect($channels) ->reject->hasConnections()