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);