From 93138de064359da3ac0511e1f8d1b5de7234b9b6 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 28 Nov 2024 14:19:49 +1300 Subject: [PATCH] API Explicity mark nullable parameters for PHP 8.4 --- src/FacebookWebDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FacebookWebDriver.php b/src/FacebookWebDriver.php index 6fe76003..8e9724ec 100755 --- a/src/FacebookWebDriver.php +++ b/src/FacebookWebDriver.php @@ -1105,7 +1105,7 @@ public function getWebDriverSessionId() * @param RemoteWebElement|null $parent Optional parent element * @return RemoteWebElement */ - private function findElement($xpath, RemoteWebElement $parent = null) + private function findElement($xpath, ?RemoteWebElement $parent = null) { $finder = WebDriverBy::xpath($xpath); return $parent