Skip to content

Commit 3101fc4

Browse files
authored
Fixes #49 (#50)
Signed-off-by: hamed-fo <[email protected]>
1 parent 8564d6b commit 3101fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Prometheus/Storage/Redis.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private function connectToServer(): void
182182
{
183183
try {
184184
$connection_successful = false;
185-
if ($this->options['persistent_connections'] !== null) {
185+
if ($this->options['persistent_connections'] !== false) {
186186
$connection_successful = $this->redis->pconnect(
187187
$this->options['host'],
188188
(int) $this->options['port'],

0 commit comments

Comments
 (0)