From d71275ebddaf30f05f8f65066a236c515f8f6abb Mon Sep 17 00:00:00 2001 From: heap-s Date: Wed, 28 Aug 2024 03:48:07 -0700 Subject: [PATCH] Add SensitiveParameter to constructor parameter and changelog #872 --- CHANGELOG.md | 1 + src/Driver/Pdo/AbstractPdoDriver.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 550d21e56..1cfc7557e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Driver/Pdo/AbstractPdoDriver.php b/src/Driver/Pdo/AbstractPdoDriver.php index a79a5d426..d66153e0b 100644 --- a/src/Driver/Pdo/AbstractPdoDriver.php +++ b/src/Driver/Pdo/AbstractPdoDriver.php @@ -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 = [] ) { }