Skip to content

Commit 58ebe82

Browse files
Update RedisConnectionCheckSubscriber.php
! $result
1 parent c7f2dd9 commit 58ebe82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Listener/RedisConnectionCheckSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private function checkRedisConnection(): void
4747
try {
4848
$redis = $this->container->get(RedisFactory::class)->get('default');
4949
$result = $redis->ping();
50-
if ($result !== 'PONG') {
50+
if (! $result) {
5151
$this->logger->error('Redis connection failed: Invalid ping response');
5252
$this->container->get(StdoutLoggerInterface::class)->error('Redis connection failed: Invalid ping response');
5353
}

0 commit comments

Comments
 (0)