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