From 22600d0843866862e5428e9943e16d3424ceee47 Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Tue, 27 Feb 2024 09:19:39 -0500 Subject: [PATCH] Make NoLock implement the SharedLockInterface --- src/Symfony/Component/Lock/NoLock.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Lock/NoLock.php b/src/Symfony/Component/Lock/NoLock.php index 450428313d0e2..0032dc6bff0cb 100644 --- a/src/Symfony/Component/Lock/NoLock.php +++ b/src/Symfony/Component/Lock/NoLock.php @@ -19,8 +19,13 @@ * * @author Wouter de Jong */ -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;