Skip to content

Commit

Permalink
Fix check for connection_persistent with phpredis factory (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
starred-gijs authored and B-Galati committed Oct 9, 2019
1 parent 217e34e commit 1f4d298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Factory/PhpredisClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function create($class, $dsn, $options, $alias)
$connectParameters[] = null;
}

if (isset($options['connection_persistent'])) {
if (!empty($options['connection_persistent'])) {
$connectParameters[] = $parsedDsn->getPersistentId();
}

Expand Down

0 comments on commit 1f4d298

Please sign in to comment.