Skip to content

Commit 4de64ad

Browse files
committed
Improve parameter names in ext/sqlite3
1 parent ae81003 commit 4de64ad

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ext/sqlite3/sqlite3.stub.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function lastErrorMsg() {}
3232
public function changes() {}
3333

3434
/** @return bool */
35-
public function busyTimeout(int $ms) {}
35+
public function busyTimeout(int $milliseconds) {}
3636

3737
#ifndef SQLITE_OMIT_LOAD_EXTENSION
3838
/** @return bool */
@@ -41,11 +41,11 @@ public function loadExtension(string $shared_library) {}
4141

4242
#if SQLITE_VERSION_NUMBER >= 3006011
4343
/** @return bool */
44-
public function backup(SQLite3 $destination_db, string $source_dbname = "main", string $destination_dbname = "main") {}
44+
public function backup(SQLite3 $sqlite3, string $source_database = "main", string $destination_database = "main") {}
4545
#endif
4646

4747
/** @return string */
48-
public static function escapeString(string $value) {}
48+
public static function escapeString(string $string) {}
4949

5050
/** @return SQLite3Stmt|false */
5151
public function prepare(string $query) {}
@@ -69,7 +69,7 @@ public function createAggregate(string $name, callable $step_callback, callable
6969
public function createCollation(string $name, callable $callback) {}
7070

7171
/** @return resource|false */
72-
public function openBlob(string $table, string $column, int $rowid, string $dbname = "main", int $flags = SQLITE3_OPEN_READONLY) {}
72+
public function openBlob(string $table, string $column, int $rowid, string $database = "main", int $flags = SQLITE3_OPEN_READONLY) {}
7373

7474
/** @return bool */
7575
public function enableExceptions(bool $enableExceptions = false) {}
@@ -86,10 +86,10 @@ class SQLite3Stmt
8686
private function __construct(SQLite3 $sqlite3, string $sql) {}
8787

8888
/** @return bool */
89-
public function bindParam(string|int $param_number, mixed &$param, int $type = SQLITE3_TEXT) {}
89+
public function bindParam(string|int $param, mixed &$bind_var, int $type = SQLITE3_TEXT) {}
9090

9191
/** @return bool */
92-
public function bindValue(string|int $param_number, mixed $param, int $type = SQLITE3_TEXT) {}
92+
public function bindValue(string|int $param, mixed $bind_var, int $type = SQLITE3_TEXT) {}
9393

9494
/** @return bool */
9595
public function clear() {}
@@ -101,7 +101,7 @@ public function close() {}
101101
public function execute() {}
102102

103103
/** @return string|false */
104-
public function getSQL(bool $expanded = false) {}
104+
public function getSQL(bool $expand = false) {}
105105

106106
/** @return int */
107107
public function paramCount() {}
@@ -121,10 +121,10 @@ private function __construct() {}
121121
public function numColumns() {}
122122

123123
/** @return string|false */
124-
public function columnName(int $column_number) {}
124+
public function columnName(int $index) {}
125125

126126
/** @return int|false */
127-
public function columnType(int $column_number) {}
127+
public function columnType(int $index) {}
128128

129129
/** @return array|false */
130130
public function fetchArray(int $mode = SQLITE3_BOTH) {}

0 commit comments

Comments
 (0)