diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-08-07 16:48:39 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-08-07 16:48:45 +0200 |
commit | 046cc5e4c213b836546689d5bdc8925f057c24b5 (patch) | |
tree | 2fc60163e4d8a588203483ad3094d339fe246799 /ext/pdo | |
parent | 7b9f37c3893a9a1c942a04a09c9e6b172c4af80b (diff) | |
download | php-git-046cc5e4c213b836546689d5bdc8925f057c24b5.tar.gz |
Add another round of missing parameter types to stubs
Closes GH-5950
Diffstat (limited to 'ext/pdo')
-rw-r--r-- | ext/pdo/pdo_dbh.stub.php | 2 | ||||
-rw-r--r-- | ext/pdo/pdo_dbh_arginfo.h | 4 | ||||
-rw-r--r-- | ext/pdo/pdo_stmt.stub.php | 16 | ||||
-rw-r--r-- | ext/pdo/pdo_stmt_arginfo.h | 8 |
4 files changed, 12 insertions, 18 deletions
diff --git a/ext/pdo/pdo_dbh.stub.php b/ext/pdo/pdo_dbh.stub.php index bde46dd712..a35e34e098 100644 --- a/ext/pdo/pdo_dbh.stub.php +++ b/ext/pdo/pdo_dbh.stub.php @@ -37,7 +37,7 @@ class PDO public function prepare(string $statement, array $driver_options = []) {} /** @return PDOStatement|false */ - public function query(string $statement, ?int $fetch_mode = null, ...$fetch_mode_args) {} + public function query(string $statement, ?int $fetch_mode = null, mixed ...$fetch_mode_args) {} /** @return string|false */ public function quote(string $string, int $parameter_type = PDO::PARAM_STR) {} diff --git a/ext/pdo/pdo_dbh_arginfo.h b/ext/pdo/pdo_dbh_arginfo.h index 1057c54665..b5cf1d81d0 100644 --- a/ext/pdo/pdo_dbh_arginfo.h +++ b/ext/pdo/pdo_dbh_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 36270d1418fc4ddd8f79018372b0ef00fb6f5889 */ + * Stub hash: 623f0a96bc1ae5eadcac5ba92eb73189cd3230cd */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO___construct, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, dsn, IS_STRING, 0) @@ -41,7 +41,7 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO_query, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, statement, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fetch_mode, IS_LONG, 1, "null") - ZEND_ARG_VARIADIC_INFO(0, fetch_mode_args) + ZEND_ARG_VARIADIC_TYPE_INFO(0, fetch_mode_args, IS_MIXED, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO_quote, 0, 0, 1) diff --git a/ext/pdo/pdo_stmt.stub.php b/ext/pdo/pdo_stmt.stub.php index bab620d627..d34607de8c 100644 --- a/ext/pdo/pdo_stmt.stub.php +++ b/ext/pdo/pdo_stmt.stub.php @@ -4,17 +4,11 @@ class PDOStatement implements IteratorAggregate { - /** - * @param mixed $driverdata - * @return bool - */ - public function bindColumn(int|string $column, &$param, int $type = 0, int $maxlen = 0, $driverdata = null) {} + /** @return bool */ + public function bindColumn(int|string $column, &$param, int $type = 0, int $maxlen = 0, mixed $driverdata = null) {} - /** - * @param mixed $driver_options - * @return bool - */ - public function bindParam(int|string $parameter, &$param, int $type = PDO::PARAM_STR, int $maxlen = 0, $driverdata = null) {} + /** @return bool */ + public function bindParam(int|string $parameter, &$param, int $type = PDO::PARAM_STR, int $maxlen = 0, mixed $driverdata = null) {} /** * @param int|string $parameter @@ -75,7 +69,7 @@ class PDOStatement implements IteratorAggregate public function setAttribute(int $attribute, $value) {} /** @return bool */ - public function setFetchMode(int $mode, ...$params) {} + public function setFetchMode(int $mode, mixed ...$params) {} public function getIterator(): Iterator {} } diff --git a/ext/pdo/pdo_stmt_arginfo.h b/ext/pdo/pdo_stmt_arginfo.h index aa9227d83b..517c15b614 100644 --- a/ext/pdo/pdo_stmt_arginfo.h +++ b/ext/pdo/pdo_stmt_arginfo.h @@ -1,12 +1,12 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 590a642abbc8d54be143a1c595e9e704888e9b5f */ + * Stub hash: 1802a0ceaa7be9a7644d1b943d2b7d70be23ec75 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_bindColumn, 0, 0, 2) ZEND_ARG_TYPE_MASK(0, column, MAY_BE_LONG|MAY_BE_STRING, NULL) ZEND_ARG_INFO(1, param) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "0") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxlen, IS_LONG, 0, "0") - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, driverdata, "null") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, driverdata, IS_MIXED, 0, "null") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_bindParam, 0, 0, 2) @@ -14,7 +14,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_bindParam, 0, 0, 2) ZEND_ARG_INFO(1, param) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "PDO::PARAM_STR") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxlen, IS_LONG, 0, "0") - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, driverdata, "null") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, driverdata, IS_MIXED, 0, "null") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_bindValue, 0, 0, 2) @@ -78,7 +78,7 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_setFetchMode, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0) - ZEND_ARG_VARIADIC_INFO(0, params) + ZEND_ARG_VARIADIC_TYPE_INFO(0, params, IS_MIXED, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_PDOStatement_getIterator, 0, 0, Iterator, 0) |