Skip to content

Commit 518a9e0

Browse files
committed
Merge pull request php-webdriver#267 from facebook/gfosco.wait
Check isset for timeout in seconds
2 parents 752a598 + 3f9606a commit 518a9e0

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)