Skip to content

Commit 77262e7

Browse files
Set ReturnType of LockFactory to LockInterface
1 parent 03d9a1d commit 77262e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LockFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class LockFactory extends Factory
2626
* @param float|null $ttl Maximum expected lock duration in seconds
2727
* @param bool $autoRelease Whether to automatically release the lock or not when the lock instance is destroyed
2828
*/
29-
public function createLock($resource, $ttl = 300.0, $autoRelease = true): Lock
29+
public function createLock($resource, $ttl = 300.0, $autoRelease = true): LockInterface
3030
{
3131
return parent::createLock($resource, $ttl, $autoRelease);
3232
}

0 commit comments

Comments
 (0)