diff --git a/src/Service/PdfGenerator.php b/src/Service/PdfGenerator.php index fbb580b..a344265 100644 --- a/src/Service/PdfGenerator.php +++ b/src/Service/PdfGenerator.php @@ -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 = [