瀏覽代碼

Update DB\SqliteStatement #9

Fix for PHP 8.0 - 8.0.6.
Visman 3 年之前
父節點
當前提交
274ea421de
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Core/DB/SqliteStatement.php

+ 2 - 2
app/Core/DB/SqliteStatement.php

@@ -18,12 +18,12 @@ use PDO;
  */
  */
 class SqliteStatement extends AbstractSqliteStatement
 class SqliteStatement extends AbstractSqliteStatement
 {
 {
-    public function fetch(int $mode = PDO::FETCH_DEFAULT, int $orientation = PDO::FETCH_ORI_NEXT, int $offset = 0): mixed
+    public function fetch(int $mode = 0 /* PDO::FETCH_DEFAULT */, int $orientation = PDO::FETCH_ORI_NEXT, int $offset = 0): mixed
     {
     {
         return $this->dbFetch($mode, $orientation, $offset);
         return $this->dbFetch($mode, $orientation, $offset);
     }
     }
 
 
-    public function fetchAll(int $mode = PDO::FETCH_DEFAULT, ...$args): array
+    public function fetchAll(int $mode = 0 /* PDO::FETCH_DEFAULT */, ...$args): array
     {
     {
         return $this->dbFetchAll($mode, ...$args);
         return $this->dbFetchAll($mode, ...$args);
     }
     }