]> granicus.if.org Git - php/commitdiff
Make fetch_* OO same as func
authorDharman <tekiela246@gmail.com>
Wed, 6 Jan 2021 12:59:27 +0000 (12:59 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 6 Jan 2021 14:02:52 +0000 (15:02 +0100)
Clsoses GH-6580.

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

index 0e6fe71d619a4fc8563ad8ec97e02cafaa1841ca..9963c52763bb19fc67bf82695394ecc1bfaee36c 100644 (file)
@@ -355,19 +355,19 @@ class mysqli_result implements IteratorAggregate
     public function fetch_array(int $mode = MYSQLI_BOTH) {}
 
     /**
-     * @return array|null
+     * @return array|null|false
      * @alias mysqli_fetch_assoc
      */
     public function fetch_assoc() {}
 
     /**
-     * @return object|null
+     * @return object|null|false
      * @alias mysqli_fetch_object
      */
     public function fetch_object(string $class = "stdClass", array $constructor_args = []) {}
 
     /**
-     * @return array|null
+     * @return array|null|false
      * @alias mysqli_fetch_row
      */
     public function fetch_row() {}
index fb49d5eac5f63a3300f4185633df23679f5a3a5e..9881a984df3cd2976f980c4b845b9f17a460a360 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 0403f612783ee03ff4f586f136b5d3481ecd072c */
+ * Stub hash: 5a8b778eaa9efcca7d3ad8bfdbaa31d9d07b25e8 */
 
 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, mysqli, 0)