File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ class RedisWatcher implements Watcher
1818{
1919 private Closure $ callback ;
2020
21- private $ pubRedis ;
21+ private Client $ pubRedis ;
2222
23- private $ subRedis ;
23+ private Client $ subRedis ;
2424
2525 private $ channel ;
2626 /**
@@ -86,12 +86,7 @@ public function close(): void
8686 */
8787 private function createRedisClient (array $ config ): Client
8888 {
89- $ config ['host ' ] = $ config ['host ' ] ?? '127.0.0.1 ' ;
90- $ config ['port ' ] = $ config ['port ' ] ?? 6379 ;
91- $ config ['password ' ] = $ config ['password ' ] ?? '' ;
92- $ config ['database ' ] = $ config ['database ' ] ?? 0 ;
93-
94- $ redis = new Client ('redis:// ' . $ config ['host ' ] . ': ' . $ config ['port ' ]);
89+ $ redis = new Client ('redis:// ' . $ config ['host ' ] ?? '127.0.0.1 ' . ': ' . $ config ['port ' ] ?? 6379 );
9590 $ redis ->auth ($ config ['password ' ] ?? '' );
9691
9792 return $ redis ;
You can’t perform that action at this time.
0 commit comments