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

Commit a490f78

Browse files
committed
Do not json encode it when it is being encoded within the publish class
1 parent 0a7864a commit a490f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PubSub/RedisDriverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public function redis_listener_responds_properly_on_payload()
3030
],
3131
];
3232

33-
$payload = json_encode([
33+
$payload = [
3434
'appId' => '1234',
3535
'event' => 'test',
3636
'data' => $channelData,
3737
'socket' => $connection->socketId,
38-
]);
38+
];
3939

4040
$this->getSubscribeClient()->onMessage('1234:test-channel', $payload);
4141

0 commit comments

Comments
 (0)