diff --git a/src/Database/Driver.php b/src/Database/Driver.php index cea076aa0e2..4f450d4fb60 100644 --- a/src/Database/Driver.php +++ b/src/Database/Driver.php @@ -323,24 +323,8 @@ public function __destruct() { * @return array */ public function __debugInfo() { - $secrets = [ - 'password' => '*****', - 'login' => '*****', - 'host' => '*****', - 'database' => '*****', - 'port' => '*****', - 'prefix' => '*****', - 'schema' => '*****' - ]; - $replace = array_intersect_key($secrets, $this->_config); - return [ - '_baseConfig' => $replace + $this->_baseConfig, - '_config' => $replace + $this->_config, - '_autoQuoting' => $this->_autoQuoting, - '_startQuote' => $this->_startQuote, - '_endQuote' => $this->_endQuote, - '_schemaDialect' => get_class($this->_schemaDialect) + 'connected' => $this->isConnected() ]; }