add basic FreeBSD support for utils

This commit is contained in:
crazywhalecc
2023-10-15 13:07:13 +08:00
committed by Jerry Ma
parent a983667b90
commit 84d1c789bd
11 changed files with 422 additions and 2 deletions

View File

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