mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-04 23:35:40 +08:00
feat: enhance type hints and improve verbosity handling in commands (#1186)
This commit is contained in:
@@ -117,7 +117,7 @@ class UnixAutoconfExecutor extends Executor
|
||||
/**
|
||||
* Add configure args.
|
||||
*/
|
||||
public function addConfigureArgs(...$args): static
|
||||
public function addConfigureArgs(string ...$args): static
|
||||
{
|
||||
$this->configure_args = [...$this->configure_args, ...$args];
|
||||
return $this;
|
||||
@@ -126,7 +126,7 @@ class UnixAutoconfExecutor extends Executor
|
||||
/**
|
||||
* Remove some configure args, to bypass the configure option checking for some libs.
|
||||
*/
|
||||
public function removeConfigureArgs(...$args): static
|
||||
public function removeConfigureArgs(string ...$args): static
|
||||
{
|
||||
$this->configure_args = array_diff($this->configure_args, $args);
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user