diff --git a/src/Phinx/Db/Adapter/PdoAdapter.php b/src/Phinx/Db/Adapter/PdoAdapter.php index 17dc6f1b5..7dfbcedf0 100644 --- a/src/Phinx/Db/Adapter/PdoAdapter.php +++ b/src/Phinx/Db/Adapter/PdoAdapter.php @@ -41,6 +41,7 @@ use Phinx\Util\Literal; use ReflectionProperty; use RuntimeException; +use SensitiveParameter; use Symfony\Component\Console\Output\OutputInterface; use UnexpectedValueException; @@ -86,7 +87,7 @@ protected function verboseLog(string $message): void * @param array $options Connection options * @return \PDO */ - protected function createPdoConnection(string $dsn, ?string $username = null, ?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,