From 681482dc517cb727c2082dfc6955d5953dfcb280 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Tue, 28 Mar 2023 12:52:39 +0200 Subject: [PATCH] Check if the package is installed --- packages/framework/src/Console/Commands/DebugCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework/src/Console/Commands/DebugCommand.php b/packages/framework/src/Console/Commands/DebugCommand.php index c089dfc6e75..95e82ffdbc8 100644 --- a/packages/framework/src/Console/Commands/DebugCommand.php +++ b/packages/framework/src/Console/Commands/DebugCommand.php @@ -39,7 +39,7 @@ public function handle(): int $this->newLine(); $this->comment('Git Version: '.(string) app('git.version')); - $this->comment('Hyde Version: '.(InstalledVersions::getPrettyVersion('hyde/hyde') ?: 'unreleased')); + $this->comment('Hyde Version: '.((InstalledVersions::isInstalled('hyde/hyde') ? InstalledVersions::getPrettyVersion('hyde/hyde') : null) ?: 'unreleased')); $this->comment('Framework Version: '.(InstalledVersions::getPrettyVersion('hyde/framework') ?: 'unreleased')); $this->newLine();