Skip to content

Commit 3f9606a

Browse files
committed
Check isset for timeout in seconds
1 parent 752a598 commit 3f9606a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WebDriverWait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(
3535
$timeout_in_second = null,
3636
$interval_in_millisecond = null) {
3737
$this->driver = $driver;
38-
$this->timeout = $timeout_in_second ?: 30;
38+
$this->timeout = isset($timeout_in_second) ? $timeout_in_second : 30;
3939
$this->interval = $interval_in_millisecond ?: 250;
4040
}
4141

0 commit comments

Comments
 (0)