Skip to content

Commit

Permalink
Move SensitiveParameter attribute from interface to implementation in…
Browse files Browse the repository at this point in the history
… AbstractPdoDriver
  • Loading branch information
heap-s committed Aug 28, 2024
1 parent 8bec788 commit 99d59d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Driver/Pdo/AbstractPdoDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getUsername(): string
return $this->username;
}

public function password(string $password): void
public function password(#[\SensitiveParameter] string $password): void
{
$this->password = $password;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Driver/Pdo/PdoDriverInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function getUsername(): string;
*
* @param string $password The password for establishing DB connection.
*/
public function password(#[\SensitiveParameter] string $password): void;
public function password(string $password): void;

/**
* Set username for establishing DB connection. Defaults to `null` meaning use no username.
Expand Down

0 comments on commit 99d59d6

Please sign in to comment.