Skip to content

Commit e35394c

Browse files
committed
fix templateData
1 parent f5e69f9 commit e35394c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pdf/PdfInvoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(
6565
// @phpstan-ignore-next-line
6666
$this->template = sprintf('invoices::%s', $template ?? config('invoices.pdf.template') ?? config('invoices.default_template'));
6767
// @phpstan-ignore-next-line
68-
$this->templateData = config('invoices.pdf.template_data') ?? [];
68+
$this->templateData = $templateData ?: config('invoices.pdf.template_data') ?: [];
6969
}
7070

7171
public function getTypeLabel(): ?string

0 commit comments

Comments
 (0)