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;