From a490f78f09ab952f4803dc73535a4dbd52425047 Mon Sep 17 00:00:00 2001 From: Nathan Rzepecki Date: Fri, 21 Aug 2020 19:38:59 +0800 Subject: [PATCH] Do not json encode it when it is being encoded within the publish class --- tests/PubSub/RedisDriverTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/PubSub/RedisDriverTest.php b/tests/PubSub/RedisDriverTest.php index e6585a1..c67ab88 100644 --- a/tests/PubSub/RedisDriverTest.php +++ b/tests/PubSub/RedisDriverTest.php @@ -30,12 +30,12 @@ class RedisDriverTest extends TestCase ], ]; - $payload = json_encode([ + $payload = [ 'appId' => '1234', 'event' => 'test', 'data' => $channelData, 'socket' => $connection->socketId, - ]); + ]; $this->getSubscribeClient()->onMessage('1234:test-channel', $payload);