Skip to content

Commit

Permalink
tweak(Tinebase/BroadcastHub): fix possible return values of push()
Browse files Browse the repository at this point in the history
... to match return values of Redis::publish()
  • Loading branch information
pschuele committed Dec 16, 2024
1 parent 227d995 commit 286bf1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tine20/Tinebase/BroadcastHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function isActive(): bool
return $this->_isActive;
}

public function push(string $verb, string $model, string $recordId, ?string $containerId): int
public function push(string $verb, string $model, string $recordId, ?string $containerId): Redis|int|false
{
return $this->_getRedis()->publish($this->_pubSubName, json_encode([
'verb' => $verb,
Expand Down

0 comments on commit 286bf1f

Please sign in to comment.