diff --git a/src/StaticPHP/Command/CheckUpdateCommand.php b/src/StaticPHP/Command/CheckUpdateCommand.php
index 965fb201..9a2d5f5c 100644
--- a/src/StaticPHP/Command/CheckUpdateCommand.php
+++ b/src/StaticPHP/Command/CheckUpdateCommand.php
@@ -51,8 +51,9 @@ class CheckUpdateCommand extends BaseCommand
$this->output->writeln("Artifact {$artifact} is already up to date (version: {$result->new})");
} else {
$this->output->writeln("Update available for artifact: {$artifact}");
- $this->output->writeln(" Old version: {$result->old}");
- $this->output->writeln(" New version: {$result->new}");
+ [$old, $new] = [$result->old ?? 'unavailable', $result->new ?? 'unknown'];
+ $this->output->writeln(" Old version: {$old}");
+ $this->output->writeln(" New version: {$new}");
}
}
return static::OK;