Skip to content

Commit 31e5a35

Browse files
Fix inability to use zero delay (#44)
The default config has start_delay as zero, which is skipped over by the if condition due to zero's falseness
1 parent 51018cf commit 31e5a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhiremockExtension/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private function initDelay(array $config): void
208208
return;
209209
}
210210

211-
if ($config['start_delay']) {
211+
if (is_int($config['start_delay']) && $config['start_delay'] >= 0) {
212212
$this->delay = (int) $config['start_delay'];
213213
}
214214
}

0 commit comments

Comments
 (0)