Skip to content

Commit

Permalink
fix for zip compression when $nameInZip is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
boryn authored and freekmurze committed Oct 17, 2023
1 parent 3e4c195 commit 66913a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tasks/Backup/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function add(string | iterable $files, string $nameInZip = null): self

if (is_int($compressionMethod)) {
$this->zipFile->setCompressionName(
ltrim($nameInZip, DIRECTORY_SEPARATOR),
ltrim($nameInZip ?: $file, DIRECTORY_SEPARATOR),
$compressionMethod,
$compressionLevel
);
Expand Down

0 comments on commit 66913a8

Please sign in to comment.