Skip to content

Commit 22600d0

Browse files
committed
Make NoLock implement the SharedLockInterface
1 parent cf5b5c1 commit 22600d0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Symfony/Component/Lock/NoLock.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@
1919
*
2020
* @author Wouter de Jong <wouter@wouterj.nl>
2121
*/
22-
final class NoLock implements LockInterface
22+
final class NoLock implements SharedLockInterface
2323
{
24+
public function acquireRead(bool $blocking = false): bool
25+
{
26+
return true;
27+
}
28+
2429
public function acquire(bool $blocking = false): bool
2530
{
2631
return true;

0 commit comments

Comments
 (0)