From 7586954e53695343b896340a743a47f104feff28 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 11 Mar 2026 21:41:58 -0500 Subject: [PATCH] fix: Predis ping() returns Status object, cast to string before compare --- health.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/health.php b/health.php index 402ece8..3028a97 100644 --- a/health.php +++ b/health.php @@ -52,7 +52,7 @@ try { $ping = $redis->ping(); $health['checks']['redis'] = [ - 'status' => ($ping === 'PONG' || $ping === true) ? 'ok' : 'error', + 'status' => ((string)$ping === 'PONG' || $ping === true) ? 'ok' : 'error', 'host' => getenv('REDIS_HOST') ?: 'redis' ]; } catch (Exception $e) {