Skip to content

Commit

Permalink
Merge pull request #21 from flownative/fix-types-cli
Browse files Browse the repository at this point in the history
Fix types in redissentinel:connect command
  • Loading branch information
robertlemke authored Nov 23, 2022
2 parents 7dd8759 + 0e96953 commit 16bf99d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/Command/RedisSentinelCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ public function connectCommand(string $cacheIdentifier): void
$backendConfiguration['backendOptions']['password'] ?? '',
$backendConfiguration['backendOptions']['service'] ?? '',
$backendConfiguration['backendOptions']['hostname'] ?? '',
$backendConfiguration['backendOptions']['port'] ?? 6379,
$backendConfiguration['backendOptions']['database'] ?? 1,
$backendConfiguration['backendOptions']['timeout'] ?? 10,
$backendConfiguration['backendOptions']['readWriteTimeout'] ?? 10,
$backendConfiguration['backendOptions']['port'] ? (int)$backendConfiguration['backendOptions']['port'] : 6379,
$backendConfiguration['backendOptions']['database'] ? (int)$backendConfiguration['backendOptions']['database'] : 1,
$backendConfiguration['backendOptions']['timeout'] ? (int)$backendConfiguration['backendOptions']['timeout'] : 10,
$backendConfiguration['backendOptions']['readWriteTimeout'] ? (int)$backendConfiguration['backendOptions']['readWriteTimeout'] : 10,
);
$this->outputLine('<success>✔</success>');

Expand Down

0 comments on commit 16bf99d

Please sign in to comment.