Add type-hint for dynamic variables in DBA
This commit is contained in:
parent
9054e00873
commit
af9ce6b92a
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,7 @@ class DBA
|
||||||
*/
|
*/
|
||||||
private static $logger;
|
private static $logger;
|
||||||
private static $server_info = '';
|
private static $server_info = '';
|
||||||
|
/** @var PDO|mysqli */
|
||||||
private static $connection;
|
private static $connection;
|
||||||
private static $driver;
|
private static $driver;
|
||||||
private static $error = false;
|
private static $error = false;
|
||||||
|
@ -496,6 +497,7 @@ class DBA
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @var $stmt mysqli_stmt|PDOStatement */
|
||||||
if (!$stmt = self::$connection->prepare($sql)) {
|
if (!$stmt = self::$connection->prepare($sql)) {
|
||||||
$errorInfo = self::$connection->errorInfo();
|
$errorInfo = self::$connection->errorInfo();
|
||||||
self::$error = $errorInfo[2];
|
self::$error = $errorInfo[2];
|
||||||
|
|
Loading…
Reference in a new issue