Remove all @throws PHPDoc, it's almost useless for SPC anymore

This commit is contained in:
crazywhalecc
2025-08-06 20:17:26 +08:00
committed by Jerry Ma
parent fa10142f13
commit 0c9a30256e
120 changed files with 169 additions and 1203 deletions

View File

@@ -55,11 +55,6 @@ class LinuxMuslCheck
return CheckResult::fail('musl-cross-make is not installed on your system', 'fix-musl-cross-make');
}
/** @noinspection PhpUnused */
/**
* @throws DownloaderException
* @throws FileSystemException
*/
#[AsFixItem('fix-musl-wrapper')]
public function fixMusl(): bool
{
@@ -94,11 +89,6 @@ class LinuxMuslCheck
}
}
/** @noinspection PhpUnused */
/**
* @throws FileSystemException
* @throws WrongUsageException
*/
#[AsFixItem('fix-musl-cross-make')]
public function fixMuslCrossMake(): bool
{

View File

@@ -114,10 +114,6 @@ class LinuxToolCheckList
return CheckResult::ok();
}
/**
* @throws RuntimeException
* @noinspection PhpUnused
*/
#[AsFixItem('install-linux-tools')]
public function fixBuildTools(array $distro, array $missing): bool
{

View File

@@ -8,8 +8,6 @@ use SPC\doctor\AsCheckItem;
use SPC\doctor\AsFixItem;
use SPC\doctor\CheckResult;
use SPC\doctor\OptionalCheck;
use SPC\exception\FileSystemException;
use SPC\exception\WrongUsageException;
use SPC\store\PackageManager;
use SPC\store\pkg\Zig;
use SPC\toolchain\ZigToolchain;
@@ -32,11 +30,6 @@ class ZigCheck
return CheckResult::fail('zig is not installed', 'install-zig');
}
/** @noinspection PhpUnused */
/**
* @throws FileSystemException
* @throws WrongUsageException
*/
#[AsFixItem('install-zig')]
public function installZig(): bool
{