From a44a1d454e58cc7f0fb554a1d37812bf7c3e0e8b Mon Sep 17 00:00:00 2001 From: Martin Grossmann Date: Mon, 18 Oct 2021 13:02:32 +0200 Subject: [PATCH] fixed type incompatibility in Webdriver $function parameter with type callable is not a subtype of native type Closure. --- src/Codeception/Module/WebDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Codeception/Module/WebDriver.php b/src/Codeception/Module/WebDriver.php index d6a0451..eaff6c1 100644 --- a/src/Codeception/Module/WebDriver.php +++ b/src/Codeception/Module/WebDriver.php @@ -2628,7 +2628,7 @@ public function wait($timeout) * Try not to use this command on a regular basis. * If Codeception lacks a feature you need, please implement it and submit a patch. * - * @param callable $function + * @param \Closure $function */ public function executeInSelenium(\Closure $function) {