Skip to content

Commit 6edc28d

Browse files
committed
change setOptions to setOption to avoid overriding the config
1 parent 7a98144 commit 6edc28d

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)