mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
Avoid empty output
This commit is contained in:
parent
7cedd45567
commit
029f8efa12
@ -51,8 +51,9 @@ class CheckUpdateCommand extends BaseCommand
|
||||
$this->output->writeln("Artifact <info>{$artifact}</info> is already up to date (version: {$result->new})");
|
||||
} else {
|
||||
$this->output->writeln("<comment>Update available for artifact: {$artifact}</comment>");
|
||||
$this->output->writeln(" Old version: <error>{$result->old}</error>");
|
||||
$this->output->writeln(" New version: <info>{$result->new}</info>");
|
||||
[$old, $new] = [$result->old ?? 'unavailable', $result->new ?? 'unknown'];
|
||||
$this->output->writeln(" Old version: <error>{$old}</error>");
|
||||
$this->output->writeln(" New version: <info>{$new}</info>");
|
||||
}
|
||||
}
|
||||
return static::OK;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user