File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
],
13
13
"require" : {
14
14
"php" : " >=7.1" ,
15
- "clue/redis-protocol" : " 0.3.* " ,
15
+ "clue/redis-protocol" : " ^ 0.3.2 " ,
16
16
"evenement/evenement" : " ^3.0 || ^2.0 || ^1.0" ,
17
17
"react/event-loop" : " ^1.2" ,
18
- "react/promise" : " ^3" ,
19
- "react/socket" : " ^1.15 "
18
+ "react/promise" : " ^3.2 " ,
19
+ "react/socket" : " ^1.16 "
20
20
},
21
21
"require-dev" : {
22
22
"phpstan/phpstan" : " 1.10.15 || 1.4.10" ,
23
23
"phpunit/phpunit" : " ^9.6 || ^7.5" ,
24
- "react/async" : " ^4.2 || ^3.2"
24
+ "react/async" : " ^4.3 || ^3.2"
25
25
},
26
26
"autoload" : {
27
27
"psr-4" : {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class Factory
27
27
* @param ?ConnectorInterface $connector
28
28
* @param ?ProtocolFactory $protocol
29
29
*/
30
- public function __construct (ConnectorInterface $ connector = null , ProtocolFactory $ protocol = null )
30
+ public function __construct (? ConnectorInterface $ connector = null , ? ProtocolFactory $ protocol = null )
31
31
{
32
32
$ this ->connector = $ connector ?: new Connector ();
33
33
$ this ->protocol = $ protocol ?: new ProtocolFactory ();
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class RedisClient extends EventEmitter
54
54
/** @var array<string,bool> */
55
55
private $ psubscribed = [];
56
56
57
- public function __construct (string $ url , ConnectorInterface $ connector = null )
57
+ public function __construct (string $ url , ? ConnectorInterface $ connector = null )
58
58
{
59
59
$ args = [];
60
60
\parse_str ((string ) \parse_url ($ url , \PHP_URL_QUERY ), $ args );
You can’t perform that action at this time.
0 commit comments