There was an error while loading. Please reload this page.
1 parent 301b476 commit f25844eCopy full SHA for f25844e
1 file changed
src/ZendDiagnostics/Check/Redis.php
@@ -56,6 +56,7 @@ public function check()
56
/**
57
* @return PredisClient|RedisExtensionClient
58
*
59
+ * @throws \RedisException
60
* @throws \RuntimeException
61
*/
62
private function createClient()
@@ -64,8 +65,8 @@ private function createClient()
64
65
$client = new RedisExtensionClient();
66
$client->connect($this->host, $this->port);
67
- if ($this->auth) {
68
- $client->auth($this->auth);
+ if ($this->auth && false === $client->auth($this->auth)) {
69
+ throw new \RedisException('Failed to AUTH connection');
70
}
71
72
return $client;
0 commit comments