1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-30 09:39:51 +02:00

Cleanup: Definition of custom PDO statement class

This commit is contained in:
Peter Knut
2024-11-10 23:32:31 +01:00
parent 99f4c22c72
commit 638288cc04

View File

@@ -12,9 +12,9 @@ if (extension_loaded('pdo')) {
}
}
function dsn($dsn, $username, $password, $options = array()) {
function dsn($dsn, $username, $password, $options = []) {
$options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_SILENT;
$options[PDO::ATTR_STATEMENT_CLASS] = array('Min_PDOStatement');
$options[PDO::ATTR_STATEMENT_CLASS] = [Min_PDOStatement::class];
try {
$this->pdo = new PDO($dsn, $username, $password, $options);
} catch (Exception $ex) {