Skip to content

Commit d1cb3af

Browse files
authored
Fix 'usleep(): Argument #1 ($microseconds) must be of type int, float given' (#85)
1 parent df1a28c commit d1cb3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Module/WebDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2656,7 +2656,7 @@ public function wait($timeout): void
26562656
);
26572657
}
26582658

2659-
usleep($timeout * 1_000_000);
2659+
usleep((int)($timeout * 1_000_000));
26602660
}
26612661

26622662
/**

0 commit comments

Comments
 (0)