- Database->$driver can no longer be NULL, an empty string is fine anyway
*
* @return string with either "pdo" or "mysqli"
*/
- public static function getDriver()
+ public static function getDriver(): string
{
return DI::dba()->getDriver();
}
protected $server_info = '';
/** @var PDO|mysqli */
protected $connection;
- protected $driver;
+ protected $driver = '';
protected $pdo_emulate_prepares = false;
private $error = false;
private $errorno = 0;
// No suitable SQL driver was found.
if (!$this->connected) {
- $this->driver = null;
+ $this->driver = '';
$this->connection = null;
}
}
}
- $this->driver = null;
+ $this->driver = '';
$this->connected = false;
}