Skip to content

Commit 44c6d62

Browse files
committed
Refactor LinuxMuslCheck to use MuslToolchain class for toolchain check
1 parent e584808 commit 44c6d62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SPC/doctor/item/LinuxMuslCheck.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
use SPC\store\FileSystem;
1717
use SPC\store\PackageManager;
1818
use SPC\store\SourcePatcher;
19+
use SPC\toolchain\MuslToolchain;
1920

2021
#[OptionalCheck([self::class, 'optionalCheck'])]
2122
class LinuxMuslCheck
2223
{
2324
public static function optionalCheck(): bool
2425
{
25-
return getenv('SPC_TOOLCHAIN') === 'musl';
26+
return getenv('SPC_TOOLCHAIN') === MuslToolchain::class;
2627
}
2728

2829
/** @noinspection PhpUnused */

0 commit comments

Comments
 (0)