8000 bug #43589 [Lock] Fix incorrect return type in PostgreSqlStore (GromNaN) · symfony/symfony@a14ef91 · GitHub
[go: up one dir, main page]

Skip to content

Commit a14ef91

Browse files
committed
bug #43589 [Lock] Fix incorrect return type in PostgreSqlStore (GromNaN)
This PR was merged into the 5.3 branch. Discussion ---------- [Lock] Fix incorrect return type in PostgreSqlStore | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | no | License | MIT | Doc PR | no [Reported by Psalm](https://github.com/symfony/symfony/pull/43587/checks?check_run_id=3939988273): ``` ERROR: UndefinedInterfaceMethod - src/Symfony/Component/Lock/Store/PostgreSqlStore.php:235:36 - Method Symfony\Component\Lock\PersistingStoreInterface::saveRead does not exist (see https://psalm.dev/181) $this->getInternalStore()->saveRead($key); ``` Commits ------- 729a019 [Lock] Fix incorrect return type in PostgreSqlStore
2 parents 68537b2 + 729a019 commit a14ef91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Lock/Store/PostgreSqlStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Symfony\Component\Lock\Exception\InvalidArgumentException;
1919
use Symfony\Component\Lock\Exception\LockConflictedException;
2020
use Symfony\Component\Lock\Key;
21-
use Symfony\Component\Lock\PersistingStoreInterface;
21+
use Symfony\Component\Lock\SharedLockStoreInterface;
2222

2323
/**
2424
* PostgreSqlStore is a PersistingStoreInterface implementation using
@@ -276,7 +276,7 @@ private function checkDriver(): void
276276
}
277277
}
278278

279-
private function getInternalStore(): PersistingStoreInterface
279+
private function getInternalStore(): SharedLockStoreInterface
280280
{
281281
$namespace = spl_object_hash($this->getConnection());
282282

0 commit comments

Comments
 (0)
0