This commit is contained in:
crazywhalecc
2026-02-03 13:02:43 +08:00
parent 103b5b3585
commit 7041e060f2
3 changed files with 96 additions and 1 deletions

View File

@@ -146,7 +146,8 @@ readonly class Doctor
foreach (DoctorLoader::getDoctorItems() as [$item, $optional]) {
/* @var CheckItem $item */
// optional check
if ($optional !== null && !call_user_func($optional)) {
/* @phpstan-ignore-next-line */
if (is_callable($optional) && !call_user_func($optional)) {
continue; // skip this when the optional check is false
}
// limit_os check