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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user