From effefd4844fc3773c8380b051c696782f9c3baff Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Tue, 26 Aug 2025 14:51:07 +0700 Subject: [PATCH] string --- src/SPC/util/SPCTarget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SPC/util/SPCTarget.php b/src/SPC/util/SPCTarget.php index 981f51cd..b8f5367a 100644 --- a/src/SPC/util/SPCTarget.php +++ b/src/SPC/util/SPCTarget.php @@ -100,7 +100,7 @@ class SPCTarget public static function getLibcVersion(): ?string { if (PHP_OS_FAMILY === 'Linux') { - $target = getenv('SPC_TARGET'); + $target = (string) getenv('SPC_TARGET'); if (str_contains($target, '-gnu.2.')) { return preg_match('/-gnu\.(2\.\d+)/', $target, $matches) ? $matches[1] : null; }