File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments