From 7c05c5cdae1db6e211790eabb3e01783b8d1c178 Mon Sep 17 00:00:00 2001 From: Kolbasyatin Date: Sat, 2 Sep 2017 23:19:36 +0300 Subject: [PATCH] Update Topic.php We can send message not only string, but array also, so, IDE does unpleasant highlights. --- src/Ratchet/Wamp/Topic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ratchet/Wamp/Topic.php b/src/Ratchet/Wamp/Topic.php index 3fe73d1..7bde5e0 100644 --- a/src/Ratchet/Wamp/Topic.php +++ b/src/Ratchet/Wamp/Topic.php @@ -38,7 +38,7 @@ class Topic implements \IteratorAggregate, \Countable { /** * Send a message to all the connections in this topic - * @param string $msg Payload to publish + * @param string|array $msg Payload to publish * @param array $exclude A list of session IDs the message should be excluded from (blacklist) * @param array $eligible A list of session Ids the message should be send to (whitelist) * @return Topic The same Topic object to chain