Skip to content

Commit 6dabfd9

Browse files
authored
Merge pull request #157 from dodaydream/master
Change `setOptions` to `setOption` to avoid overriding the config
2 parents 7a98144 + 6edc28d commit 6dabfd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Invoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function render()
257257
$view = View::make($template, ['invoice' => $this]);
258258
$html = mb_convert_encoding($view, 'HTML-ENTITIES', 'UTF-8');
259259

260-
$this->pdf = Pdf::setOptions(['enable_php' => true])->loadHtml($html);
260+
$this->pdf = Pdf::setOption(['enable_php' => true])->loadHtml($html);
261261
$this->output = $this->pdf->output();
262262

263263
return $this;

0 commit comments

Comments
 (0)