diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-24 09:54:59 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-24 09:56:48 +0200 |
commit | be4553b61a0979154928cfe87748c0620b81a2e0 (patch) | |
tree | 32f811aa56b3fbe17f8ccd585300986ee050a7ee /ext | |
parent | ffa57164a84462e33912d359bcf11f8debb1c7d8 (diff) | |
download | php-git-be4553b61a0979154928cfe87748c0620b81a2e0.tar.gz |
More precise type in mysqli_result constructor
This ctor requires a mysqli object. Possibly there was some
confusion with the mysqli_warning constructor here.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mysqli/mysqli.stub.php | 2 | ||||
-rw-r--r-- | ext/mysqli/mysqli_arginfo.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysqli/mysqli.stub.php b/ext/mysqli/mysqli.stub.php index 9d557fe746..78d303b4ee 100644 --- a/ext/mysqli/mysqli.stub.php +++ b/ext/mysqli/mysqli.stub.php @@ -301,7 +301,7 @@ class mysqli class mysqli_result implements IteratorAggregate { - public function __construct(object $mysqli_link, int $result_mode = MYSQLI_STORE_RESULT) {} + public function __construct(mysqli $mysqli_link, int $result_mode = MYSQLI_STORE_RESULT) {} /** * @return void diff --git a/ext/mysqli/mysqli_arginfo.h b/ext/mysqli/mysqli_arginfo.h index a0228f56ae..6622685fb7 100644 --- a/ext/mysqli/mysqli_arginfo.h +++ b/ext/mysqli/mysqli_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 7657a5373cc27d878b1ac1f11d371f77fe243a6a */ + * Stub hash: 20d9c5578108df89a863dd93f289e6f79d1db183 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING) ZEND_ARG_OBJ_INFO(0, mysql_link, mysqli, 0) @@ -596,7 +596,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_refresh, 0, 0, 1) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_result___construct, 0, 0, 1) - ZEND_ARG_TYPE_INFO(0, mysqli_link, IS_OBJECT, 0) + ZEND_ARG_OBJ_INFO(0, mysqli_link, mysqli, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, result_mode, IS_LONG, 0, "MYSQLI_STORE_RESULT") ZEND_END_ARG_INFO() |