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

@@ -46,8 +46,10 @@ class UnixAutoconfExecutor extends Executor
/**
* Run make
*
* @param string $target Build target
* @throws RuntimeException
* @param string $target Build target
* @param false|string $with_install Run `make install` after building, or false to skip
* @param bool $with_clean Whether to clean before building
* @param array $after_env_vars Environment variables postfix
*/
public function make(string $target = '', false|string $with_install = 'install', bool $with_clean = true, array $after_env_vars = []): static
{

View File

@@ -4,12 +4,9 @@ declare(strict_types=1);
namespace SPC\util\executor;
use Closure;
use SPC\builder\freebsd\library\BSDLibraryBase;
use SPC\builder\linux\library\LinuxLibraryBase;
use SPC\builder\macos\library\MacOSLibraryBase;
use SPC\exception\FileSystemException;
use SPC\exception\WrongUsageException;
use SPC\store\FileSystem;
use SPC\util\UnixShell;
@@ -144,10 +141,6 @@ class UnixCMakeExecutor extends Executor
return implode(' ', $this->configure_args);
}
/**
* @throws WrongUsageException
* @throws FileSystemException
*/
private function getDefaultCMakeArgs(): string
{
return implode(' ', $this->custom_default_args ?? [
@@ -176,9 +169,7 @@ class UnixCMakeExecutor extends Executor
/**
* Generate cmake toolchain file for current spc instance, and return the file path.
*
* @return string CMake toolchain file path
* @throws FileSystemException
* @throws WrongUsageException
* @return string CMake toolchain file path
*/
private function makeCmakeToolchainFile(): string
{