Skip to content

Commit 3a8f940

Browse files
committed
chore: add missing return types
1 parent 4feb4ae commit 3a8f940

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ public function switchTo(): WebDriverTargetLocator
631631
* @param string $name
632632
* @param array $params
633633
*/
634-
public function execute($name, $params)
634+
public function execute($name, $params): mixed
635635
{
636636
$this->start();
637637

@@ -660,7 +660,7 @@ public function findElements(WebDriverBy $locator): array
660660
*
661661
* @throws \Exception
662662
*/
663-
public function executeScript($script, array $arguments = [])
663+
public function executeScript($script, array $arguments = []): mixed
664664
{
665665
if (!$this->webDriver instanceof JavaScriptExecutor) {
666666
throw $this->createException(JavaScriptExecutor::class);
@@ -674,7 +674,7 @@ public function executeScript($script, array $arguments = [])
674674
*
675675
* @throws \Exception
676676
*/
677-
public function executeAsyncScript($script, array $arguments = [])
677+
public function executeAsyncScript($script, array $arguments = []): mixed
678678
{
679679
if (!$this->webDriver instanceof JavaScriptExecutor) {
680680
throw $this->createException(JavaScriptExecutor::class);

0 commit comments

Comments
 (0)