mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 02:15:36 +08:00
Do some code quality check and fix #126
This commit is contained in:
@@ -12,11 +12,11 @@ use SPC\exception\RuntimeException;
|
||||
|
||||
class LinuxMuslCheck
|
||||
{
|
||||
/** @noinspection PhpUnused */
|
||||
#[AsCheckItem('if musl-libc is installed', limit_os: 'Linux')]
|
||||
public function checkMusl(): ?CheckResult
|
||||
{
|
||||
$file = '/lib/ld-musl-x86_64.so.1';
|
||||
$result = null;
|
||||
if (file_exists($file)) {
|
||||
return CheckResult::ok();
|
||||
}
|
||||
@@ -29,6 +29,10 @@ class LinuxMuslCheck
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws RuntimeException
|
||||
* @noinspection PhpUnused
|
||||
*/
|
||||
#[AsFixItem('fix-musl')]
|
||||
public function fixMusl(array $distro): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user