Set ReturnType of LockFactory to LockInterface

This commit is contained in:
Alexander Schranz 2019-10-18 21:16:41 +02:00 committed by GitHub
parent d6b567d8ad
commit ff1fa57ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}