]> git.mxchange.org Git - friendica.git/commitdiff
Rebase type-hint based on https://github.com/friendica/friendica/pull/7266/commits...
authorPhilipp Holzer <admin+github@philipp.info>
Sat, 15 Jun 2019 11:11:12 +0000 (13:11 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Mon, 24 Jun 2019 07:36:07 +0000 (09:36 +0200)
src/Database/Database.php

index 7d3d7fae7e02ad846868876404ebf5f6ca992420..38406b6bad09ed9e7e82aabc0598342dd0c434fa 100644 (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];