10000 feature #54084 [Lock] Make NoLock implement the SharedLockInterface (… · symfony/symfony@9e810de · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e810de

Browse files
feature #54084 [Lock] Make NoLock implement the SharedLockInterface (mbabker)
This PR was merged into the 7.1 branch. Discussion ---------- [Lock] Make NoLock implement the SharedLockInterface | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | Fix #53713 | License | MIT This PR updates the `Symfony\Component\Lock\NoLock` stub to implement `Symfony\Component\Lock\SharedLockInterface` and returns it to being compatible with the `Symfony\Component\Lock\LockFactory` return types. Commits ------- 22600d0 Make NoLock implement the SharedLockInterface
2 parents cf5b5c1 + 22600d0 commit 9e810de

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)
0