Skip to content

Commit b274112

Browse files
committed
Adjustements from review
1 parent 5fedc75 commit b274112

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ext/sqlite3/sqlite3.stub.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ public function setAuthorizer(?callable $callback) {}
8383

8484
class SQLite3Stmt
8585
{
86-
private function __construct(SQLite3 $sqlite3, string $sql) {}
86+
private function __construct(SQLite3 $sqlite3, string $query) {}
8787

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

9191
/** @return bool */
9292
public function bindValue(string|int $param, mixed $value, int $type = SQLITE3_TEXT) {}
@@ -121,10 +121,10 @@ private function __construct() {}
121121
public function numColumns() {}
122122

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

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

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

ext/sqlite3/sqlite3_arginfo.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 343a1ef283e97363ab012922c7af1913728d1ca6 */
2+
* Stub hash: 56f33820fab91333193040c39738b78c8b12761e */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SQLite3___construct, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
@@ -100,12 +100,12 @@ ZEND_END_ARG_INFO()
100100

101101
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SQLite3Stmt___construct, 0, 0, 2)
102102
ZEND_ARG_OBJ_INFO(0, sqlite3, SQLite3, 0)
103-
ZEND_ARG_TYPE_INFO(0, sql, IS_STRING, 0)
103+
ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
104104
ZEND_END_ARG_INFO()
105105

106106
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SQLite3Stmt_bindParam, 0, 0, 2)
107107
ZEND_ARG_TYPE_MASK(0, param, MAY_BE_STRING|MAY_BE_LONG, NULL)
108-
ZEND_ARG_TYPE_INFO(1, bind_var, IS_MIXED, 0)
108+
ZEND_ARG_TYPE_INFO(1, var, IS_MIXED, 0)
109109
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "SQLITE3_TEXT")
110110
ZEND_END_ARG_INFO()
111111

@@ -136,7 +136,7 @@ ZEND_END_ARG_INFO()
136136
#define arginfo_class_SQLite3Result_numColumns arginfo_class_SQLite3_close
137137

138138
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SQLite3Result_columnName, 0, 0, 1)
139-
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
139+
ZEND_ARG_TYPE_INFO(0, column, IS_LONG, 0)
140140
ZEND_END_ARG_INFO()
141141

142142
#define arginfo_class_SQLite3Result_columnType arginfo_class_SQLite3Result_columnName

0 commit comments

Comments
 (0)