]> granicus.if.org Git - php/commitdiff
More precise type in mysqli_result constructor
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 24 Sep 2020 07:54:59 +0000 (09:54 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 24 Sep 2020 07:56:48 +0000 (09:56 +0200)
This ctor requires a mysqli object. Possibly there was some
confusion with the mysqli_warning constructor here.

ext/mysqli/mysqli.stub.php
ext/mysqli/mysqli_arginfo.h

index 9d557fe7462e01bd386d5c07ca1ea70f46dc5f1b..78d303b4ee64c5621e08e8677d86e68cc3f6c0cd 100644 (file)
@@ -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
index a0228f56aea86805b2456579af3120e33e9df7a6..6622685fb7def3ae41f5b3287922d9ddcd7c6b7a 100644 (file)
@@ -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()