Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a14ef91

Browse filesBrowse 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
Copy full SHA for a14ef91

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/PostgreSqlStore.php
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.