From eefd2c8ecb7d6900f07a5df407d344530feca078 Mon Sep 17 00:00:00 2001 From: Alwin Garside Date: Mon, 23 Mar 2026 11:29:06 +0100 Subject: [PATCH] fix: usephul-23 `is_non_empty_string('0')` returns `false` --- src/Var/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Var/functions.php b/src/Var/functions.php index dcdc495..7387206 100644 --- a/src/Var/functions.php +++ b/src/Var/functions.php @@ -78,7 +78,7 @@ function is_negative_int(mixed $value): bool */ function is_non_empty_string(mixed $value): bool { - return ! empty($value) && is_string($value); + return is_string($value) && $value !== ''; } /**