From 2d2d51e57e038547368433023e5f9fa32d4cf8f0 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 23 Aug 2023 12:59:10 +0200 Subject: [PATCH] HeadlessChrome: Fix `Variable '$params' is probably undefined` --- library/Pdfexport/HeadlessChrome.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Pdfexport/HeadlessChrome.php b/library/Pdfexport/HeadlessChrome.php index 0612987..356aad2 100644 --- a/library/Pdfexport/HeadlessChrome.php +++ b/library/Pdfexport/HeadlessChrome.php @@ -588,6 +588,7 @@ private function waitFor(Client $ws, $eventName, array $expectedParams = null) $wait = true; $interceptedPos = -1; + $params = null; do { if (isset($this->interceptedEvents[++$interceptedPos])) { $response = $this->interceptedEvents[$interceptedPos];