Skip to content

Commit

Permalink
Added missed use on connection callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Polokij committed Oct 21, 2024
1 parent c38a185 commit 9a14059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function createClient($uri)
$pass = isset($args['password']) ? $args['password'] : (isset($parts['pass']) ? rawurldecode($parts['pass']) : null);
if (isset($args['password']) || isset($parts['pass'])) {
$pass = isset($args['password']) ? $args['password'] : rawurldecode($parts['pass']);
$promise = $promise->then(function (StreamingClient $redis) use ($pass, $uri) {
$promise = $promise->then(function (StreamingClient $redis) use ($pass, $uri, $args) {
$promise = empty($args['username'])
? $redis->auth($pass)
: $redis->auth($args['username'], $pass);
Expand Down

0 comments on commit 9a14059

Please sign in to comment.