Skip to content

Commit

Permalink
chore: add missing return types
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed May 30, 2023
1 parent 4feb4ae commit 3a8f940
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 3a8f940

Please sign in to comment.