From 3a8f940958194d1f423a54c6dedebeb023c9d720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 30 May 2023 16:10:46 +0200 Subject: [PATCH] chore: add missing return types --- src/Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Client.php b/src/Client.php index 6c3670c7..3d1101cd 100644 --- a/src/Client.php +++ b/src/Client.php @@ -631,7 +631,7 @@ public function switchTo(): WebDriverTargetLocator * @param string $name * @param array $params */ - public function execute($name, $params) + public function execute($name, $params): mixed { $this->start(); @@ -660,7 +660,7 @@ public function findElements(WebDriverBy $locator): array * * @throws \Exception */ - public function executeScript($script, array $arguments = []) + public function executeScript($script, array $arguments = []): mixed { if (!$this->webDriver instanceof JavaScriptExecutor) { throw $this->createException(JavaScriptExecutor::class); @@ -674,7 +674,7 @@ public function executeScript($script, array $arguments = []) * * @throws \Exception */ - public function executeAsyncScript($script, array $arguments = []) + public function executeAsyncScript($script, array $arguments = []): mixed { if (!$this->webDriver instanceof JavaScriptExecutor) { throw $this->createException(JavaScriptExecutor::class);