Skip to content

Commit

Permalink
Add SensitiveParameter to constructor parameter and changelog #872
Browse files Browse the repository at this point in the history
  • Loading branch information
heap-s committed Aug 28, 2024
1 parent 99d59d6 commit d71275e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- Enh #862: Refactor PHP type of `ColumnSchemaInterface` instances (@Tigrov)
- Enh #865: Raise minimum PHP version to `^8.1` with minor refactoring (@Tigrov, @vjik)
- Enh #798: Allow `QueryInterface::one()` and `QueryInterface::all()` to return objects (@darkdef, @Tigrov)
- Chg #872: Add `#[\SensitiveParameter]` attribute for password (@heap-s)

## 1.3.0 March 21, 2024

Expand Down
2 changes: 1 addition & 1 deletion src/Driver/Pdo/AbstractPdoDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class AbstractPdoDriver implements PdoDriverInterface
public function __construct(
protected string $dsn,
protected string $username = '',
protected string $password = '',
#[\SensitiveParameter] protected string $password = '',
protected array $attributes = []
) {
}
Expand Down

0 comments on commit d71275e

Please sign in to comment.