Skip to content

Commit ead26a4

Browse files
committed
fix: Browsershot::html() creates new instance, use setHtml instead
1 parent 20ad276 commit ead26a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Stages/BrowserStage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function __invoke(mixed $payload): string
138138
if ($this->browsershotInstance instanceof \Spatie\Browsershot\Browsershot) {
139139
// Clone the provided instance and set HTML
140140
$browsershot = clone $this->browsershotInstance;
141-
$browsershot = $browsershot->html($this->html);
141+
$browsershot = $browsershot->setHtml($this->html);
142142
} else {
143143
// Create default Browsershot instance
144144
$browsershot = Browsershot::html($this->html);

0 commit comments

Comments
 (0)