From af9ce6b92acde542419e2b5fed7c73f3f7a87472 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 13 Jun 2019 19:07:04 -0400 Subject: [PATCH] Add type-hint for dynamic variables in DBA --- src/Database/DBA.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Database/DBA.php b/src/Database/DBA.php index 9f34a86c1..72769dca9 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -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];