Skip to content

Commit

Permalink
Browsershot 3.52.4 comptability (#12)
Browse files Browse the repository at this point in the history
* browshershot 3.52.4

* return string from callBrowser
  • Loading branch information
marksalmon authored Apr 2, 2022
1 parent 58ded3e commit 823b81a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BrowsershotLambda.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class BrowsershotLambda extends Browsershot
{
protected function callBrowser(array $command)
protected function callBrowser(array $command): string
{
$url = Arr::get($command, 'url');

Expand All @@ -31,6 +31,7 @@ protected function callBrowser(array $command)

if ($path) {
file_put_contents($path, base64_decode($response->body()));
return $path;
} else {
return $response->body();
}
Expand Down

0 comments on commit 823b81a

Please sign in to comment.