Update the local class and the interface

This commit is contained in:
Nathan Rzepecki 2020-08-21 19:45:52 +08:00
parent a490f78f09
commit 1cd35b190b
2 changed files with 4 additions and 4 deletions

View File

@ -34,10 +34,10 @@ class LocalClient implements ReplicationInterface
* *
* @param string $appId * @param string $appId
* @param string $channel * @param string $channel
* @param stdClass $payload * @param array $payload
* @return bool * @return bool
*/ */
public function publish($appId, string $channel, stdClass $payload): bool public function publish($appId, string $channel, array $payload): bool
{ {
return true; return true;
} }

View File

@ -22,10 +22,10 @@ interface ReplicationInterface
* *
* @param string $appId * @param string $appId
* @param string $channel * @param string $channel
* @param stdClass $payload * @param array $payload
* @return bool * @return bool
*/ */
public function publish($appId, string $channel, stdClass $payload): bool; public function publish($appId, string $channel, array $payload): bool;
/** /**
* Subscribe to receive messages for a channel. * Subscribe to receive messages for a channel.