Skip to content

Commit 4715aa8

Browse files
authored
Merge pull request #165 from Gamesh/channel-serialization-fix
fixes array serialization problem
2 parents e4f6980 + d04edbc commit 4715aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pusher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ public function trigger($channels, $event, $data, $socket_id = null, $debug = fa
489489
$post_params = array();
490490
$post_params['name'] = $event;
491491
$post_params['data'] = $data_encoded;
492-
$post_params['channels'] = $channels;
492+
$post_params['channels'] = array_values($channels);
493493

494494
if ($socket_id !== null) {
495495
$post_params['socket_id'] = $socket_id;

0 commit comments

Comments
 (0)