Skip to content

Commit

Permalink
Make NoLock implement the SharedLockInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Feb 27, 2024
1 parent cf5b5c1 commit 22600d0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Symfony/Component/Lock/NoLock.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@
*
* @author Wouter de Jong <wouter@wouterj.nl>
*/
final class NoLock implements LockInterface
final class NoLock implements SharedLockInterface
{
public function acquireRead(bool $blocking = false): bool
{
return true;
}

public function acquire(bool $blocking = false): bool
{
return true;
Expand Down

0 comments on commit 22600d0

Please sign in to comment.