File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 9
9
/**
10
10
* Simple interface for executing redis commands
11
11
*
12
- * @event data(ModelInterface $messageModel, Client $thisClient )
12
+ * @event data(ModelInterface $messageModel)
13
13
* @event error(Exception $error)
14
14
* @event close()
15
15
*
@@ -33,7 +33,7 @@ interface Client extends EventEmitterInterface
33
33
*
34
34
* @param string $name
35
35
* @param string[] $args
36
- * @return PromiseInterface
36
+ * @return PromiseInterface Promise<mixed, Exception>
37
37
*/
38
38
public function __call ($ name , $ args );
39
39
Original file line number Diff line number Diff line change 18
18
use Clue \Redis \Protocol \Model \MultiBulkReply ;
19
19
use Clue \Redis \Protocol \Model \StatusReply ;
20
20
21
+ /**
22
+ * @internal
23
+ */
21
24
class StreamingClient extends EventEmitter implements Client
22
25
{
23
26
private $ stream ;
@@ -122,7 +125,7 @@ public function __call($name, $args)
122
125
123
126
public function handleMessage (ModelInterface $ message )
124
127
{
125
- $ this ->emit ('data ' , array ($ message, $ this ));
128
+ $ this ->emit ('data ' , array ($ message ));
126
129
127
130
if ($ this ->monitoring && $ this ->isMonitorMessage ($ message )) {
128
131
$ this ->emit ('monitor ' , array ($ message ));
You can’t perform that action at this time.
0 commit comments