Fix 13 PHPStan errors

This commit is contained in:
Art4 2025-03-12 15:03:15 +00:00
parent bf530a00d7
commit a50383836d

View file

@ -60,7 +60,7 @@ class Database
protected $syslock = null; protected $syslock = null;
protected $server_info = ''; protected $server_info = '';
/** @var PDO|mysqli */ /** @var PDO|mysqli|null */
protected $connection; protected $connection;
protected $driver = ''; protected $driver = '';
protected $pdo_emulate_prepares = false; protected $pdo_emulate_prepares = false;
@ -253,7 +253,7 @@ class Database
/** /**
* Return the database object. * Return the database object.
* *
* @return PDO|mysqli * @return PDO|mysqli|null
*/ */
public function getConnection() public function getConnection()
{ {