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

Commit 1cd35b1

Browse files
committed
Update the local class and the interface
1 parent a490f78 commit 1cd35b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/PubSub/Drivers/LocalClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public function boot(LoopInterface $loop, $factoryClass = null): ReplicationInte
3434
*
3535
* @param string $appId
3636
* @param string $channel
37-
* @param stdClass $payload
37+
* @param array $payload
3838
* @return bool
3939
*/
40-
public function publish($appId, string $channel, stdClass $payload): bool
40+
public function publish($appId, string $channel, array $payload): bool
4141
{
4242
return true;
4343
}

src/PubSub/ReplicationInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public function boot(LoopInterface $loop, $factoryClass = null): self;
2222
*
2323
* @param string $appId
2424
* @param string $channel
25-
* @param stdClass $payload
25+
* @param array $payload
2626
* @return bool
2727
*/
28-
public function publish($appId, string $channel, stdClass $payload): bool;
28+
public function publish($appId, string $channel, array $payload): bool;
2929

3030
/**
3131
* Subscribe to receive messages for a channel.

0 commit comments

Comments
 (0)