diff --git a/src/Service/DistManager.php b/src/Service/DistManager.php index 086a8611..f92aa407 100644 --- a/src/Service/DistManager.php +++ b/src/Service/DistManager.php @@ -197,7 +197,7 @@ private function downloadVCS(string $reference, Package $package, ?string $versi $format = $this->config->getArchiveFormat(); $targetDir = $this->config->generateTargetDir($package->getName()); - $fileName = $this->config->getFileName($reference, $versionName); + $fileName = $this->config->getFileName($reference, $versionName ?: self::EMPTY_VERSION_NAME); try { if ($path = $archiveManager->tryFromGitArchive($reference, $format, $targetDir, $fileName)) {