From 86ef34fc6144c046c8d2109a736db6c99b103e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Wed, 26 May 2021 11:55:03 +0200 Subject: [PATCH] Fix the return type of mysqli::connect() --- ext/mysqli/mysqli.stub.php | 2 +- ext/mysqli/mysqli_arginfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/mysqli/mysqli.stub.php b/ext/mysqli/mysqli.stub.php index bb8746535b6..a0d368d72f8 100644 --- a/ext/mysqli/mysqli.stub.php +++ b/ext/mysqli/mysqli.stub.php @@ -54,7 +54,7 @@ class mysqli public function commit(int $flags = 0, ?string $name = null) {} /** - * @return mysqli|null|false + * @return bool|null * @alias mysqli_connect * @no-verify */ diff --git a/ext/mysqli/mysqli_arginfo.h b/ext/mysqli/mysqli_arginfo.h index 6ecfbd42a60..b0bfc522536 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: c2ab263780902447855ecb0d8a9e3432577a32d1 */ + * Stub hash: 5a2483f099fbebc795747e3b51402b2194020743 */ 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)