Skip to content

Commit

Permalink
Timeout is not nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander De la Marche committed Feb 27, 2023
1 parent 149a8fc commit b83390a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/PdfGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ public function generate(
string $path,
?array $printOptions = null,
?array $browserOptions = null,
?int $timeout = 30000
int $timeout = 30000
): string {
$browser = $this->browserFactory->createBrowser($browserOptions ?? []);

try {
$page = $browser->createPage();

$page->setHtml($html, $timeout,Page::NETWORK_IDLE);
$page->setHtml($html, $timeout, Page::NETWORK_IDLE);

if ($printOptions === null) {
$printOptions = [
Expand Down

0 comments on commit b83390a

Please sign in to comment.