Skip to content

Commit 93a6c0b

Browse files
authored
Merge pull request #139 from stevethomas/main
Fix setting the name via download()
2 parents ab16dd2 + 134de4b commit 93a6c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PdfBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function footerHtml(string $html): self
137137

138138
public function download(?string $downloadName = null): self
139139
{
140-
$this->downloadName ?? $this->name($downloadName ?? 'download');
140+
$this->downloadName ?: $this->name($downloadName ?? 'download');
141141

142142
$this->addHeaders([
143143
'Content-Type' => 'application/pdf',

0 commit comments

Comments
 (0)