Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0cd583c

Browse files
bug #50562 [Lock] Fix sprintf (fancyweb)
This PR was merged into the 5.4 branch. Discussion ---------- [Lock] Fix sprintf | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | - | Tickets | - | License | MIT | Doc PR | - Commits ------- c71400a [Lock] Fix sprintf
2 parents 3336571 + c71400a commit 0cd583c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ private function unlockShared(Key $key): void
275275
private function filterDsn(string $dsn): string
276276
{
277277
if (!str_contains($dsn, '://')) {
278-
throw new InvalidArgumentException(sprintf('String "%" is not a valid DSN for Doctrine DBAL.', $dsn));
278+
throw new InvalidArgumentException(sprintf('String "%s" is not a valid DSN for Doctrine DBAL.', $dsn));
279279
}
280280

281281
[$scheme, $rest] = explode(':', $dsn, 2);

0 commit comments

Comments
 (0)