File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 99/**
1010 * Simple interface for executing redis commands
1111 *
12- * @event data(ModelInterface $messageModel, Client $thisClient )
12+ * @event data(ModelInterface $messageModel)
1313 * @event error(Exception $error)
1414 * @event close()
1515 *
@@ -33,7 +33,7 @@ interface Client extends EventEmitterInterface
3333 *
3434 * @param string $name
3535 * @param string[] $args
36- * @return PromiseInterface
36+ * @return PromiseInterface Promise<mixed, Exception>
3737 */
3838 public function __call ($ name , $ args );
3939
Original file line number Diff line number Diff line change 1818use Clue \Redis \Protocol \Model \MultiBulkReply ;
1919use Clue \Redis \Protocol \Model \StatusReply ;
2020
21+ /**
22+ * @internal
23+ */
2124class StreamingClient extends EventEmitter implements Client
2225{
2326 private $ stream ;
@@ -122,7 +125,7 @@ public function __call($name, $args)
122125
123126 public function handleMessage (ModelInterface $ message )
124127 {
125- $ this ->emit ('data ' , array ($ message, $ this ));
128+ $ this ->emit ('data ' , array ($ message ));
126129
127130 if ($ this ->monitoring && $ this ->isMonitorMessage ($ message )) {
128131 $ this ->emit ('monitor ' , array ($ message ));
You can’t perform that action at this time.
0 commit comments