Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit a0ea061

Browse files
committed
Fix Pusher lib expecting empty object not array
1 parent 1b1a231 commit a0ea061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpApi/Controllers/FetchChannelsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __invoke(Request $request)
2525
return [
2626
'user_count' => count($channel->getUsers()),
2727
];
28-
})->toArray(),
28+
})->toArray() ?: new \stdClass,
2929
];
3030
}
3131
}

0 commit comments

Comments
 (0)