]> git.mxchange.org Git - friendica.git/commitdiff
Add type-hint for dynamic variables in DBA
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 13 Jun 2019 23:07:04 +0000 (19:07 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 13 Jun 2019 23:07:04 +0000 (19:07 -0400)
src/Database/DBA.php

index 9f34a86c15fa9e6d10977bd71fd8f33500f9f261..72769dca9b6041e7129553c418e6f907186323fc 100644 (file)
@@ -45,6 +45,7 @@ class DBA
         */
        private static $logger;
        private static $server_info = '';
+       /** @var PDO|mysqli */
        private static $connection;
        private static $driver;
        private static $error = false;
@@ -496,6 +497,7 @@ class DBA
                                        break;
                                }
 
+                               /** @var $stmt mysqli_stmt|PDOStatement */
                                if (!$stmt = self::$connection->prepare($sql)) {
                                        $errorInfo = self::$connection->errorInfo();
                                        self::$error = $errorInfo[2];