8000 minor #44069 DoctrineDbalAdapter: Fix deprecation message placeholder… · symfony/symfony@dd8c1dd · GitHub
[go: up one dir, main page]

Skip to content

Commit dd8c1dd

Browse files
committed
minor #44069 DoctrineDbalAdapter: Fix deprecation message placeholders (andrew-demb)
This PR was merged into the 5.4 branch. Discussion ---------- DoctrineDbalAdapter: Fix deprecation message placeholders | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | - <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | -. <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch 5.x. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry --> Deprecation introduced in #43362 has a typo in interpolation - wrong parameter order Commits ------- e3899f5 Fix deprecation message placeholders
2 parents a0d778e + e3899f5 commit dd8c1dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function __construct($connOrDsn, string $namespace = '', int $defaultLife
7070
}
7171
$this->conn = DriverManager::getConnection(['url' => $connOrDsn]);
7272
} else {
73-
throw new \TypeError(sprintf('Argument 1 passed to "%s()" must be "%s" or string, "%s" given.', Connection::class, __METHOD__, get_debug_type($connOrDsn)));
73+
throw new \TypeError(sprintf('Argument 1 passed to "%s()" must be "%s" or string, "%s" given.', __METHOD__, Connection::class, get_debug_type($connOrDsn)));
7474
}
7575

7676
$this->table = $options['db_table'] ?? $this->table;

0 commit comments

Comments
 (0)
0