fix tests failing to deprecation

This commit is contained in:
DubbleClick
2025-07-01 15:05:44 +07:00
parent 292df38c10
commit e34eb502db
2 changed files with 3 additions and 3 deletions

View File

@@ -23,9 +23,8 @@ class SPCTarget
*/
public static function isStatic(): bool
{
$libc = getenv('SPC_LIBC');
// if SPC_LIBC is set, it means the target is static, remove it when 3.0 is released
if ($libc === 'musl') {
if (getenv('SPC_LIBC') === 'musl') {
return true;
}
if ($target = getenv('SPC_TARGET')) {