mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +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})");
|
$this->output->writeln("Artifact <info>{$artifact}</info> is already up to date (version: {$result->new})");
|
||||||
} else {
|
} else {
|
||||||
$this->output->writeln("<comment>Update available for artifact: {$artifact}</comment>");
|
$this->output->writeln("<comment>Update available for artifact: {$artifact}</comment>");
|
||||||
$this->output->writeln(" Old version: <error>{$result->old}</error>");
|
[$old, $new] = [$result->old ?? 'unavailable', $result->new ?? 'unknown'];
|
||||||
$this->output->writeln(" New version: <info>{$result->new}</info>");
|
$this->output->writeln(" Old version: <error>{$old}</error>");
|
||||||
|
$this->output->writeln(" New version: <info>{$new}</info>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return static::OK;
|
return static::OK;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user