Skip to content

Commit 8e7ca64

Browse files
committed
Make NoLock implement the SharedLockInterface
1 parent e184c65 commit 8e7ca64

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: NoLock.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@
1919
*
2020
* @author Wouter de Jong <[email protected]>
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)