Skip to content

Commit

Permalink
Fix phpcs error in PDOAdapter (#2308)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored Sep 6, 2024
1 parent 6e1de47 commit cbcd067
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Phinx/Db/Adapter/PdoAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,13 @@ protected function verboseLog(string $message): void
* @param array<int, mixed> $options Connection options
* @return \PDO
*/
protected function createPdoConnection(string $dsn, ?string $username = null, #[SensitiveParameter] ?string $password = null, array $options = []): PDO
{
protected function createPdoConnection(
string $dsn,
?string $username = null,
#[SensitiveParameter]
?string $password = null,
array $options = []
): PDO {
$adapterOptions = $this->getOptions() + [
'attr_errmode' => PDO::ERRMODE_EXCEPTION,
];
Expand Down

0 comments on commit cbcd067

Please sign in to comment.