mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 00:35:41 +08:00
Remove all @throws PHPDoc, it's almost useless for SPC anymore
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user