Skip to content

Commit

Permalink
[Lock] Fix sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Jun 5, 2023
1 parent b103cb0 commit 173c519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Store/DoctrineDbalPostgreSqlStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private function unlockShared(Key $key): void
private function filterDsn(string $dsn): string
{
if (!str_contains($dsn, '://')) {
throw new InvalidArgumentException(sprintf('String "%" is not a valid DSN for Doctrine DBAL.', $dsn));
throw new InvalidArgumentException(sprintf('String "%s" is not a valid DSN for Doctrine DBAL.', $dsn));
}

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

0 comments on commit 173c519

Please sign in to comment.