Skip to content

Commit 97f7279

Browse files
committed
Fix the return type of mysqli_connect()
1 parent 86ef34f commit 97f7279

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
@@ -542,7 +542,7 @@ function mysqli_connect(
542542
?string $database = null,
543543
?int $port = null,
544544
?string $socket = null
545-
): mysqli|null|false {}
545+
): mysqli|false {}
546546

547547
function mysqli_connect_errno(): int {}
548548

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: 5a2483f099fbebc795747e3b51402b2194020743 */
2+
* Stub hash: b801127d89f2a392476c71bef16f43c78d82dfd7 */
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, mysqli, 0)
@@ -33,7 +33,7 @@ ZEND_END_ARG_INFO()
3333

3434
#define arginfo_mysqli_commit arginfo_mysqli_begin_transaction
3535

36-
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_mysqli_connect, 0, 0, mysqli, MAY_BE_NULL|MAY_BE_FALSE)
36+
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_mysqli_connect, 0, 0, mysqli, MAY_BE_FALSE)
3737
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, hostname, IS_STRING, 1, "null")
3838
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, username, IS_STRING, 1, "null")
3939
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, password, IS_STRING, 1, "null")

0 commit comments

Comments
 (0)