Skip to content

Commit 60ba0f4

Browse files
committed
some asserts
1 parent 4e83270 commit 60ba0f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/RoadRunnerStore.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public function __construct(
2424
private readonly float $initialTtl = 300.0,
2525
private readonly float $initialWaitTtl = 0,
2626
) {
27+
\assert($this->initialTtl >= 0);
28+
\assert($this->initialWaitTtl >= 0);
2729
}
2830

2931
public function save(Key $key): void

0 commit comments

Comments
 (0)