From a0ea0617f57a02f80d2a8a408508841c4e311e28 Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Fri, 7 Dec 2018 20:38:17 +0100 Subject: [PATCH] Fix Pusher lib expecting empty object not array --- src/HttpApi/Controllers/FetchChannelsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpApi/Controllers/FetchChannelsController.php b/src/HttpApi/Controllers/FetchChannelsController.php index 937000e..22d8c1f 100644 --- a/src/HttpApi/Controllers/FetchChannelsController.php +++ b/src/HttpApi/Controllers/FetchChannelsController.php @@ -25,7 +25,7 @@ class FetchChannelsController extends Controller return [ 'user_count' => count($channel->getUsers()), ]; - })->toArray(), + })->toArray() ?: new \stdClass, ]; } }