Skip to content

Commit 71e2c85

Browse files
committed
More params.
1 parent 8218779 commit 71e2c85

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ext/pdo/pdo_dbh.stub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public function inTransaction() {}
3434
public function lastInsertId(?string $name = null) {}
3535

3636
/** @return PDOStatement|false */
37-
public function prepare(string $statement, array $driver_options = []) {}
37+
public function prepare(string $query, array $driver_options = []) {}
3838

3939
/** @return PDOStatement|false */
40-
public function query(string $statement, ?int $fetch_mode = null, mixed ...$fetch_mode_args) {}
40+
public function query(string $query, ?int $fetch_mode = null, mixed ...$fetch_mode_args) {}
4141

4242
/** @return string|false */
43-
public function quote(string $string, int $param_type = PDO::PARAM_STR) {}
43+
public function quote(string $string, int $type = PDO::PARAM_STR) {}
4444

4545
/** @return bool */
4646
public function rollBack() {}

ext/pdo/pdo_dbh_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: ad2233863f4f4e48c11f816673359121467feaac */
2+
* Stub hash: 2bee02a9952faf3f768873bafe1be9ef89086029 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO___construct, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, dsn, IS_STRING, 0)
@@ -34,19 +34,19 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO_lastInsertId, 0, 0, 0)
3434
ZEND_END_ARG_INFO()
3535

3636
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO_prepare, 0, 0, 1)
37-
ZEND_ARG_TYPE_INFO(0, statement, IS_STRING, 0)
37+
ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
3838
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, driver_options, IS_ARRAY, 0, "[]")
3939
ZEND_END_ARG_INFO()
4040

4141
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO_query, 0, 0, 1)
42-
ZEND_ARG_TYPE_INFO(0, statement, IS_STRING, 0)
42+
ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
4343
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fetch_mode, IS_LONG, 1, "null")
4444
ZEND_ARG_VARIADIC_TYPE_INFO(0, fetch_mode_args, IS_MIXED, 0)
4545
ZEND_END_ARG_INFO()
4646

4747
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO_quote, 0, 0, 1)
4848
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
49-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, param_type, IS_LONG, 0, "PDO::PARAM_STR")
49+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "PDO::PARAM_STR")
5050
ZEND_END_ARG_INFO()
5151

5252
#define arginfo_class_PDO_rollBack arginfo_class_PDO_beginTransaction

0 commit comments

Comments
 (0)