From b662e7eaf2410c809c03032efc259ab578902cf5 Mon Sep 17 00:00:00 2001 From: Sullivan SENECHAL Date: Thu, 4 Oct 2018 10:48:17 +0200 Subject: [PATCH] Correct PHPDoc type for float ttl It can be null as the Lock instance accepts it. --- src/Symfony/Component/Lock/Factory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Lock/Factory.php b/src/Symfony/Component/Lock/Factory.php index e9fdde97e8..f35ad6d8ef 100644 --- a/src/Symfony/Component/Lock/Factory.php +++ b/src/Symfony/Component/Lock/Factory.php @@ -36,9 +36,9 @@ class Factory implements LoggerAwareInterface /** * Creates a lock for the given resource. * - * @param string $resource The resource to lock - * @param float $ttl Maximum expected lock duration in seconds - * @param bool $autoRelease Whether to automatically release the lock or not when the lock instance is destroyed + * @param string $resource The resource to lock + * @param float|null $ttl Maximum expected lock duration in seconds + * @param bool $autoRelease Whether to automatically release the lock or not when the lock instance is destroyed * * @return Lock */