mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 09:25:35 +08:00
Refactor exception handler to v3, use standard shell exitcode
This commit is contained in:
@@ -29,7 +29,7 @@ class EnvCommand extends BaseCommand
|
||||
$env = $this->getArgument('env');
|
||||
if (($val = getenv($env)) === false) {
|
||||
$this->output->writeln("<error>Environment variable '{$env}' is not set.</error>");
|
||||
return static::FAILURE;
|
||||
return static::USER_ERROR;
|
||||
}
|
||||
if (is_array($val)) {
|
||||
foreach ($val as $k => $v) {
|
||||
|
||||
Reference in New Issue
Block a user