Skip to content

Commit be4553b

Browse files
committed
More precise type in mysqli_result constructor
This ctor requires a mysqli object. Possibly there was some confusion with the mysqli_warning constructor here.
1 parent ffa5716 commit be4553b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/mysqli/mysqli.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public function refresh(int $options) {}
301301

302302
class mysqli_result implements IteratorAggregate
303303
{
304-
public function __construct(object $mysqli_link, int $result_mode = MYSQLI_STORE_RESULT) {}
304+
public function __construct(mysqli $mysqli_link, int $result_mode = MYSQLI_STORE_RESULT) {}
305305

306306
/**
307307
* @return void

ext/mysqli/mysqli_arginfo.h

Lines changed: 2 additions & 2 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: 7657a5373cc27d878b1ac1f11d371f77fe243a6a */
2+
* Stub hash: 20d9c5578108df89a863dd93f289e6f79d1db183 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
55
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)
596596
ZEND_END_ARG_INFO()
597597

598598
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_result___construct, 0, 0, 1)
599-
ZEND_ARG_TYPE_INFO(0, mysqli_link, IS_OBJECT, 0)
599+
ZEND_ARG_OBJ_INFO(0, mysqli_link, mysqli, 0)
600600
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, result_mode, IS_LONG, 0, "MYSQLI_STORE_RESULT")
601601
ZEND_END_ARG_INFO()
602602

0 commit comments

Comments
 (0)