Skip to content

Commit a0a8b59

Browse files
authored
Apply suggestions from code review
1 parent c5b187c commit a0a8b59

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"php": ">=8.1",
3232
"roadrunner-php/lock": "^1.0",
3333
"symfony/lock": "^6.0 || ^7.0",
34-
"symfony/polyfill": "^1.32"
34+
"symfony/polyfill-php83": "^1.32"
3535
},
3636
"require-dev": {
3737
"phpunit/phpunit": "^10.0",

src/RoadRunnerStore.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public function __construct(
3333

3434
/**
3535
* Clone current instance with another values of ttl.
36+
* @param float $ttl The time-to-live of the lock, in seconds. Defaults to 0 (forever).
37+
* @param float $waitTtl How long to wait to acquire lock until returning false, in seconds.
3638
*/
3739
public function withTtl(float $ttl, ?float $waitTtl = null): self
3840
{

0 commit comments

Comments
 (0)