add manual doctors

This commit is contained in:
crazywhalecc
2023-06-28 18:38:14 +08:00
parent fdf36ad726
commit b852471596
5 changed files with 44 additions and 30 deletions

View File

@@ -12,12 +12,12 @@ class OSCheckList
{
use UnixSystemUtilTrait;
#[AsCheckItem('if current os are supported', level: 999)]
#[AsCheckItem('if current OS are supported', level: 999)]
public function checkOS(): ?CheckResult
{
if (!in_array(PHP_OS_FAMILY, ['Darwin', 'Linux'])) {
return CheckResult::fail('Current OS is not supported');
}
return CheckResult::ok();
return CheckResult::ok(PHP_OS_FAMILY . ' ' . php_uname('m') . ', supported');
}
}