From ff1fa57ef2b533aa1ee746a00862fa5ccb5eabff Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Fri, 18 Oct 2019 21:16:41 +0200 Subject: [PATCH] Set ReturnType of LockFactory to LockInterface --- src/Symfony/Component/Lock/LockFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Lock/LockFactory.php b/src/Symfony/Component/Lock/LockFactory.php index 2de93ce232..ca4e9d8496 100644 --- a/src/Symfony/Component/Lock/LockFactory.php +++ b/src/Symfony/Component/Lock/LockFactory.php @@ -26,7 +26,7 @@ class LockFactory extends Factory * @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 */ - public function createLock($resource, $ttl = 300.0, $autoRelease = true): Lock + public function createLock($resource, $ttl = 300.0, $autoRelease = true): LockInterface { return parent::createLock($resource, $ttl, $autoRelease); }