- Database->$driver can no longer be NULL, an empty string is fine anyway
2022.09-rc
Roland Häder 2022-06-21 13:04:05 +02:00
rodzic 945cd1a2c2
commit 1080a840f5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: C82EDE5DDFA0BA77
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -77,7 +77,7 @@ class DBA
*
* @return string with either "pdo" or "mysqli"
*/
public static function getDriver()
public static function getDriver(): string
{
return DI::dba()->getDriver();
}

Wyświetl plik

@ -64,7 +64,7 @@ class Database
protected $server_info = '';
/** @var PDO|mysqli */
protected $connection;
protected $driver;
protected $driver = '';
protected $pdo_emulate_prepares = false;
private $error = false;
private $errorno = 0;
@ -181,7 +181,7 @@ class Database
// No suitable SQL driver was found.
if (!$this->connected) {
$this->driver = null;
$this->driver = '';
$this->connection = null;
}
@ -233,7 +233,7 @@ class Database
}
}
$this->driver = null;
$this->driver = '';
$this->connected = false;
}