Skip to content

Commit 257711c

Browse files
committed
Update SUBSCRIBE and PSUBSCRIBE commands
1 parent b9636c0 commit 257711c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Redis.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ public function unwatch( ) {}
337337
* @param array $channels an array of channels to subscribe to
338338
* @param string | array $callback either a string or an array($instance, 'method_name').
339339
* The callback function receives 3 parameters: the redis instance, the channel name, and the message.
340+
* @return mixed Any non-null return value in the callback will be returned to the caller.
340341
* @link http://redis.io/commands/subscribe
341342
* @example
342343
* <pre>
@@ -367,6 +368,7 @@ public function subscribe( $channels, $callback ) {}
367368
* @param array $patterns The number of elements removed from the set.
368369
* @param string|array $callback Either a string or an array with an object and method.
369370
* The callback will get four arguments ($redis, $pattern, $channel, $message)
371+
* @param mixed Any non-null return value in the callback will be returned to the caller.
370372
* @link http://redis.io/commands/psubscribe
371373
* @example
372374
* <pre>

0 commit comments

Comments
 (0)