Skip to content

Commit b662e7e

Browse files
authored
Correct PHPDoc type for float ttl
It can be null as the Lock instance accepts it.
1 parent 155fab6 commit b662e7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Lock/Factory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public function __construct(StoreInterface $store)
3636
/**
3737
* Creates a lock for the given resource.
3838
*
39-
* @param string $resource The resource to lock
40-
* @param float $ttl Maximum expected lock duration in seconds
41-
* @param bool $autoRelease Whether to automatically release the lock or not when the lock instance is destroyed
39+
* @param string $resource The resource to lock
40+
* @param float|null $ttl Maximum expected lock duration in seconds
41+
* @param bool $autoRelease Whether to automatically release the lock or not when the lock instance is destroyed
4242
*
4343
* @return Lock
4444
*/

0 commit comments

Comments
 (0)