fix: root namespace for sqlite3 classes

This commit is contained in:
Victor Westerlund 2023-04-24 17:22:30 +02:00 committed by GitHub
parent acad98d5c0
commit 954b5c4c7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,8 @@
<?php
namespace libsqlitedriver;
namespace libsqlitedriver;
class SQLite extends SQLite3 {
class SQLite extends \SQLite3 {
function __construct(string $db = ":memory:", string $init = null) {
$this->db_path = $db;
@ -33,7 +33,7 @@
}
// Execute a prepared statement and SQLite3Result object
private function run_query(string $query, mixed $values = []): SQLite3Result|bool {
private function run_query(string $query, mixed $values = []): \SQLite3Result|bool {
$statement = $this->prepare($query);
// Format optional placeholder "?" with values