From a937a4f8aac41e33df1033c37c22f28d9a8a56c3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 20 Feb 2017 09:05:14 +0100 Subject: [PATCH] Fixing type bugs --- DataStorage/Database/Connection/ConnectionFactory.php | 2 ++ DataStorage/Database/Connection/ConnectionInterface.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DataStorage/Database/Connection/ConnectionFactory.php b/DataStorage/Database/Connection/ConnectionFactory.php index e44cfc6b5..b4698cd01 100644 --- a/DataStorage/Database/Connection/ConnectionFactory.php +++ b/DataStorage/Database/Connection/ConnectionFactory.php @@ -17,6 +17,8 @@ declare(strict_types=1); namespace phpOMS\DataStorage\Database\Connection; +use phpOMS\DataStorage\Database\DatabaseType; + /** * Database connection factory. * diff --git a/DataStorage/Database/Connection/ConnectionInterface.php b/DataStorage/Database/Connection/ConnectionInterface.php index 9085ae7ca..a6964f1a7 100644 --- a/DataStorage/Database/Connection/ConnectionInterface.php +++ b/DataStorage/Database/Connection/ConnectionInterface.php @@ -51,12 +51,12 @@ interface ConnectionInterface /** * Get the database type. * - * @return int + * @return string * * @since 1.0.0 * @author Dennis Eichhorn */ - public function getType() : int; + public function getType() : string; /** * Get the database status.