From b92239895a5a7deb9151d3468e89e37c137f8ed8 Mon Sep 17 00:00:00 2001 From: Josh Richards Date: Fri, 5 Jul 2024 21:34:34 -0400 Subject: [PATCH] fix: adjust buildVersionFile for working strict_type Signed-off-by: Josh Richards --- buildVersionFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildVersionFile.php b/buildVersionFile.php index 34af0f03..17666ad5 100644 --- a/buildVersionFile.php +++ b/buildVersionFile.php @@ -2,7 +2,7 @@ declare(strict_types=1); -$currentTag = trim(shell_exec('git describe --tags')); +$currentTag = trim(shell_exec('git describe --tags')) ?? ''; exec('git diff-files --quiet', $output, $returnValue); $dirty = $returnValue === 0 ? '' : ' dirty';