From db9a7311b71300b89a18c62e8962b53ca6edec6a Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Thu, 7 Mar 2024 23:21:24 -0300 Subject: [PATCH] Fix SQLite driver contructor --- system/MagiQL/Syntax/Where.php | 6 +++--- system/database/Databases/Driver/SQLite3.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system/MagiQL/Syntax/Where.php b/system/MagiQL/Syntax/Where.php index acb6d18..be66657 100644 --- a/system/MagiQL/Syntax/Where.php +++ b/system/MagiQL/Syntax/Where.php @@ -620,10 +620,10 @@ class Where implements WhereInterface { return $this->isNull; } - + /** - * @return QueryInterface - */ + * @return QueryInterface|\Phacil\Framework\MagiQL\Manipulation\AbstractBaseQuery + */ public function end() { return $this->query; diff --git a/system/database/Databases/Driver/SQLite3.php b/system/database/Databases/Driver/SQLite3.php index 29041e4..2e79e61 100644 --- a/system/database/Databases/Driver/SQLite3.php +++ b/system/database/Databases/Driver/SQLite3.php @@ -26,7 +26,7 @@ class SQLite3 implements DriverInterface { /** * {@inheritdoc} */ - public function __construct($hostname, $username = null, $password = null, $database, $port = '3306', $charset = 'utf8mb4') + public function __construct($hostname, $username = null, $password = null, $database = null, $port = '3306', $charset = 'utf8mb4') { $this->connection = new nativeSQLite3($hostname.$database, SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, $password);