Rebase type-hint based on af9ce6b92a

This commit is contained in:
Philipp Holzer 2019-06-15 13:11:12 +02:00
parent 46e268ccee
commit 7e29b336d5
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class Database
*/
private $logger;
private $server_info = '';
/** @var PDO|mysqli */
private $connection;
private $driver;
private $error = false;
@ -473,6 +474,7 @@ class Database
break;
}
/** @var $stmt mysqli_stmt|PDOStatement */
if (!$stmt = $this->connection->prepare($sql)) {
$errorInfo = $this->connection->errorInfo();
$this->error = $errorInfo[2];