Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
clementtalleu committed Sep 13, 2024
1 parent a3b79e6 commit 5b72222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/RedisClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(protected ?\Redis $redis = null)
}

if (array_key_exists('REDIS_USER', $_SERVER) && array_key_exists('REDIS_PASSWORD', $_SERVER)) {
$redisConfig['auth'] =[$_SERVER['REDIS_USER'], $_SERVER['REDIS_PASSWORD']];
$redisConfig['auth'] = [$_SERVER['REDIS_USER'], $_SERVER['REDIS_PASSWORD']];
}

$this->redis = $redis ?? new \Redis($redisConfig !== [] ? $redisConfig : null);
Expand Down

0 comments on commit 5b72222

Please sign in to comment.